[whatwg] Re: BNF documentation for validated input types

Olav Junker Kjær olav at olav.dk
Mon Aug 30 04:06:19 PDT 2004

Brian Wilson wrote:
> I'm pretty sure the following are correct for the time-related types. 
> I'm  not sure what the exact regexps would be for email and uri though, 
> and the  number/range ones will require some interesting expressions too:
> ----
> datetime
>    \d{4,}-W\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}.\d+)?Z

According to the latest draft, fractional seconds are optional if 
seconds are present, so it should be:

same with datetime-local and time

Olav Junker Kjær

More information about the whatwg mailing list