These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:06 pm Advanced search

Possible bugs and Itemscope on <link/> and <meta/&g

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

Possible bugs and Itemscope on <link/> and <meta/&g

Postby timvanoostrom » Thu Nov 26, 2009 5:56 pm

Hi, is the following disambiguous, a bug or not entering my mind the way it was intended.

HTML5 spec, 5.2.2 Items : "Every HTML element may have an itemscope attribute specified."

Correct example :
[code]
<div itemtype="http://url.to/geoVocab#country" itemscope>
<span itemprop="http://xmlns.com/foaf/spec/index.rdf#name" lang="cn">中è
timvanoostrom
<h5>
 
Posts: 10
Joined: Fri Nov 13, 2009 2:14 pm

Postby zcorpan » Thu Nov 26, 2009 7:10 pm

Could you send this to the WHATWG list or file a spec bug? :)
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby philipj » Fri Nov 27, 2009 7:46 am

In your first example lang="cn" is invalid, you want lang="zh-CN" for simplified Chinese as used in the PRC. The datetime format is also invalid, should be "2009-11-26T11:43".
philipj
<h6>
 
Posts: 3
Joined: Mon May 11, 2009 11:52 am

Postby philipj » Fri Nov 27, 2009 7:49 am

In the second example you need to use
Code: Select all
<time itemprop="http://url.to/physicsVocab#time" datetime="2009-11-26T11:43">11:43 pm (CT)</time>
as datetime is not a valid attribute on span.
philipj
<h6>
 
Posts: 3
Joined: Mon May 11, 2009 11:52 am

Postby timvanoostrom » Fri Nov 27, 2009 8:43 am

Hmm, i see. Well, from the 1st example you can see i meant to use <time> :-) forgot to change the 2nd example. I didn't check for the datetime format, i just assumed it would be something like mysql's datetime format.
So technically :
Code: Select all
"Correct example :"  is not so correct after all
timvanoostrom
<h5>
 
Posts: 10
Joined: Fri Nov 13, 2009 2:14 pm


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest