[whatwg] Week Strings

Anne van Kesteren annevk at opera.com
Fri Jun 19 02:55:47 PDT 2009


On Fri, 19 Jun 2009 11:48:17 +0200, Smylers <Smylers at stripey.com> wrote:
> The spec doesn't appear to provide an algorithm for determining which
> day of the week a year begins on (however I am not a browser developer;
> possibly this is sufficiently straightforward that those who are don't
> need it spelling out).

It does actually, but it is not clearly linked from "valid week" and such:

  http://www.whatwg.org/specs/web-apps/current-work/#weeks


> 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 (and therefore have to
> implement a 'which day is January 1st' algorithm, which I'm guessing it
> currently doesn't).

Or maybe it implements the bogus one the specification previously defined.


-- 
Anne van Kesteren
http://annevankesteren.nl/



More information about the whatwg mailing list