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

[whatwg] Week Strings

From: Anne van Kesteren <annevk@opera.com>
Date: Fri, 19 Jun 2009 11:55:47 +0200
Message-ID: <op.uvrm69dh64w2qv@annevk-t60>
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/
Received on Friday, 19 June 2009 02:55:47 UTC

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