Re: [whatwg] Week Strings

2009-07-14 Thread Smylers
Ian Hickson writes: > On Fri, 19 Jun 2009, Smylers wrote: > > > For 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 t

Re: [whatwg] Week Strings

2009-07-13 Thread Ian Hickson
On Fri, 19 Jun 2009, 'Smylers' wrote: > > And even states the blindingly obvious: > > The 'week number of the last day' of a week-year with 53 weeks is 53; > the 'week number of the last day' of a week-year with 52 weeks is 52. I use the term "week number of the last day" as a kind of functio

Re: [whatwg] Week Strings

2009-07-13 Thread Ian Hickson
On Fri, 19 Jun 2009, Smylers wrote: > > For 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: > >

Re: [whatwg] Week Strings

2009-06-22 Thread Henri Sivonen
On Jun 19, 2009, at 12:55, Anne van Kesteren wrote: If out-of-range week values are to be permitted in 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 1s

Re: [whatwg] Week Strings

2009-06-19 Thread j...@eatyourgreens.org.uk
_week#An_algorithm_to _calculate_the_day_of_the_week Cheers Jim O'Donnell Original Message: - From: K�i�tof �elechovski giecr...@stegny.2a.pl Date: Fri, 19 Jun 2009 13:39:55 +0200 To: smyl...@stripey.com, whatwg@lists.whatwg.org Subject: Re: [whatwg] Week Strings An al

Re: [whatwg] Week Strings

2009-06-19 Thread Smylers
timeless writes: > On Fri, Jun 19, 2009 at 2:32 PM, Smylers wrote: > > >  The 'week number of the last day' of a week-year with 53 weeks is 53; > >  the 'week number of the last day' of a week-year with 52 weeks is 52. > > well... there are people who might think you could count from week 0 Exc

Re: [whatwg] Week Strings

2009-06-19 Thread Křištof Želechovski
An algorithm to calculate the weekday of Jan. 1th given a year is not obvious at all. Just the opposite: the more obvious an external fact is, the easier (and more appropriate) it is to incorporate it to the specification because it does not cause any distraction from the main subject. Cheers, Chr

Re: [whatwg] Week Strings

2009-06-19 Thread timeless
On Fri, Jun 19, 2009 at 2:32 PM, Smylers wrote: >  The 'week number of the last day' of a week-year with 53 weeks is 53; >  the 'week number of the last day' of a week-year with 52 weeks is 52. well... there are people who might think you could count from week 0 if weeks are numbered from the firs

Re: [whatwg] Week Strings

2009-06-19 Thread 'Smylers'
Křištof Želechovski writes: > An algorithm for calculating the weekday of Jan. 1st given a year > would be outside the scope of the HTML specification. That's begging the question. > Similarly, the HTML specification does not describe how you increment > a number by 1. No, but it does explain h

Re: [whatwg] Week Strings

2009-06-19 Thread Křištof Želechovski
An algorithm for calculating the weekday of Jan. 1st given a year would be outside the scope of the HTML specification. Similarly, the HTML specification does not describe how you increment a number by 1. IMHO, Chris

Re: [whatwg] Week Strings

2009-06-19 Thread Smylers
Anne van Kesteren writes: > On Fri, 19 Jun 2009 11:48:17 +0200, Smylers > 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 >

Re: [whatwg] Week Strings

2009-06-19 Thread Anne van Kesteren
On Fri, 19 Jun 2009 11:48:17 +0200, Smylers 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

[whatwg] Week Strings

2009-06-19 Thread Smylers
For 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: Does that comment mean that the above requirement wil