[whatwg] Week Strings

Ian Hickson writes:

> On Fri, 19 Jun 2009, Smylers wrote:
> 
> > For <input type=week> elements the spec requires:
> > 
> >   The value attribute, if specified, must have a value that is a valid
> >   week string.
> > 
> >     -- http://www.whatwg.org/html5#week-state
> > 
> > But the spec's HTML source contains this comment immediately afterwards:
> > 
> >   <!-- ok to set out-of-range value, we never know when we might have to
> >   represent bogus input -->
> 
> it [...] means that there's no requirement that the value="" be within
> the range given by min="" and max="".

Thanks for clarifying that.

> >   <input type=week value=2010-W53>
> >   <input type=week value=2010-W54>
> > 
> > If out-of-range week values are to be permitted in <input> elements
> > then a validator should permit both of them.  Conversely if they
> > aren't permitted then it should accept neither of them.
> 
> Please report such bugs straight to Henri. :-)

Of course -- but I wanted to check what the correct behaviour was first.

Smylers

Received on Tuesday, 14 July 2009 02:32:48 UTC