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

[whatwg] Week Strings

From: Smylers <Smylers@stripey.com>
Date: Tue, 14 Jul 2009 10:32:48 +0100
Message-ID: <20090714093248.GA2538@stripey.com>
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

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