W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Date or Time String with Just a Time

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 14 Jul 2009 05:21:49 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0907140518130.23663@hixie.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 13 July 2009 22:21:49 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:14 UTC