[whatwg] Date or Time String with Just a Time

Ian Hickson ian at hixie.ch
Mon Jul 13 22:21:49 PDT 2009


On Fri, 19 Jun 2009, Smylers wrote:
>
> A valid time string, such as "10:55", is one of the possible values for 
> a valid date or time string:
> 
>   http://www.whatwg.org/html5#vaguer-moments-in-time
> 
> But step 10 of the parsing rules says:
> 
>   If the 'time present' flag is true, but 'position' is beyond the end
>   of 'input', then fail.
> 
> That would appear to fail on "10:55".  I think making step 10 begin "If
> the 'date present' and 'time present' flags are both true" (as step 11
> already does) fixes this.

Um, yes. Good call. Fixed.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list