W3C home > Mailing lists > Public > www-validator@w3.org > September 2012

validation of datetime values

From: KANZAKI Masahide <mkanzaki@gmail.com>
Date: Thu, 27 Sep 2012 14:02:25 +0900
Message-ID: <CAHQ1n3C14Lbho23qRq=QaTo9PkDPZqHUAGkQ4GQwUXv_v8wi0Q@mail.gmail.com>
To: www-validator@w3.org
Hello,

The validator seems to check <time> element value (and its datetime
attribute value) based on HTML5 "Dates and times microsyntax" [1],
resulting year only (YYYY) or year-month (YYYY-MM) invalid. e.g.

<time>2012</time>
<time datetime="2012-04">April 2012</time>

However, HTML5 spec explicitly allows these values (and more) for time
element [2]. I guess the validator should follow the time element
definition [2] rather than microsyntax definition [1].

cheers,


[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#dates-and-times
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-time-element

-- 
@prefix : <http://www.kanzaki.com/ns/sig#> . <> :from [:name
"KANZAKI Masahide"; :nick "masaka"; :email "mkanzaki@gmail.com"].
Received on Thursday, 27 September 2012 05:02:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 27 September 2012 05:02:55 GMT