Re: validation of datetime values

Kanzaki-san,

Thanks very much for the test file. I checked it and found two cases of
errors being reported:

1. Local times without seconds.
2. Fractional seconds with more than three digits.

About the first case, that was a bug and the cause was an oversight that had
the effect of making the code require seconds on local times -- despite the
fact the spec says they're optional. I've now pushed a fix for that out to
the validator.

About the second case, that's not a bug, because the spec does actually
require the fractional parts of seconds to be one, two, or three digits:

  http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#valid-time-string

So the examples in that spec such as "14:54:39.92922" are actually not
valid datetime values, and so for that I've filed a spec bug:

  https://www.w3.org/Bugs/Public/show_bug.cgi?id=19732

Thanks again and if you find other problems in the validator behavior for
datetime checking, please do let me know.

  --Mike

KANZAKI Masahide <mkanzaki@gmail.com>, 2012-10-26 22:19 +0900:

> Hello Mike, thank you very much for updating the validator.
> 
> I found that problems with some datetime values e.g. year only (YYYY)
> or year-month (YYYY-MM) were solved, while some others (listed in the
> HTML5 ยง4.6.11) were still marked as invalid. I put a test HTML file on
> [1] that includes all examples in the spec. Would you mind trying to
> validate against this test file if you have time ?
> 
> thank you for your efforts.
> 
> best,
> 
> [1] http://www.kanzaki.com/works/2012/test/1026-time.html
> 
> 
> 2012/10/26 Michael[tm] Smith <mike@w3.org>:
> > Kanzaki-san,
> >
> > OK, I finally pushed a change for this to the W3C Nu validator:
> >
> >   http://validator.w3.org/nu/
> >
> > It attempts to conform to the current spec. Please test it and let me know
> > if you find any problems.
> >
> > Sorry for taking so long to get this change done.
> >
> >   --Mike
> 
> 

-- 
Michael[tm] Smith http://people.w3.org/mike

Received on Saturday, 27 October 2012 05:26:34 UTC