html5/spec Overview.html,1.1556,1.1557

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv19035

Modified Files:
	Overview.html 
Log Message:
WF2: Define weeks. (whatwg r2385)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1556
retrieving revision 1.1557
diff -u -d -r1.1556 -r1.1557
--- Overview.html	30 Oct 2008 01:56:38 -0000	1.1556
+++ Overview.html	31 Oct 2008 22:12:02 -0000	1.1557
@@ -8,7 +8,7 @@
    <p><a href=http://www.w3.org/><img alt=W3C height=48 src=http://www.w3.org/Icons/w3c_home width=72></a></p>
    <h1>HTML 5</h1>
    <h2 class="no-num no-toc" id=a-vocabulary-and-associated-apis-for-html-and-xhtml>A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id=editor-s-draft-date-zzz-9-june-2008><!-- "W3C Working Draft" --> Editor's Draft <!--ZZZ-->30 October 2008</h2>
+   <h2 class="no-num no-toc" id=editor-s-draft-date-zzz-9-june-2008><!-- "W3C Working Draft" --> Editor's Draft <!--ZZZ-->31 October 2008</h2>
    <dl><!-- ZZZ: update the month/day
     <dt>This Version:</dt>
     <dd><a href="http://www.w3.org/TR/2008/WD-html5-20080610/">http://www.w3.org/TR/2008/WD-html5-20080610/</a></dd>
@@ -97,7 +97,7 @@
   specification's progress along the W3C Recommendation
   track.
   <!--ZZZ:-->
-  This specification is the 30 October 2008 <!--ZZZ "Working Draft"-->Editor's Draft.
+  This specification is the 31 October 2008 <!--ZZZ "Working Draft"-->Editor's Draft.
   <!--:ZZZ-->
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href=http://www.whatwg.org/>WHATWG</a>. The two specifications are
   identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
@@ -2677,11 +2677,27 @@
 
    <li><p>Return <var title="">time</var> and <var title="">timezone</var>.</li>
 
-  </ol><h5 id=weeks><span class=secno>2.4.4.6 </span>Weeks</h5><p>A <dfn id=concept-week title=concept-week>week</dfn> consists of a specific
-  Gregorian date with no timezone information and no date information
-  beyond a year and a week. <a href=#references>[GREGORIAN]</a></p><!-- XXX ISO week information --><p class=XXX>The <dfn id=week-number>week number</dfn> of a day is ...<p class=XXX>The <dfn id=week-number-of-the-last-day>week number of the last day</dfn> of a year ...<p>A string is a <dfn id=valid-week-string>valid week string</dfn> representing a year
-  <var title="">year</var> and week <var title="">week</var> if it
-  consists of the following components in the given order:<ol><li>Four or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing <var title="">year</var></li>
+  </ol><h5 id=weeks><span class=secno>2.4.4.6 </span>Weeks</h5><p>A <dfn id=concept-week title=concept-week>week</dfn> consists of a week-year
+  number and a week number representing a seven day period. Each
+  week-year in this calendaring system has either 52 weeks or 53
+  weeks, as defined below. A week is a seven-day period. The week
+  starting on the Gregorian date Monday December 29th 1969
+  (1969-12-29) is defined as week number 1 in week-year
+  1970. Consecutive weeks are numbered sequentially. The week before
+  the number 1 week in a week-year is the last week in the previous
+  week-year, and vice versa. <a href=#references>[GREGORIAN]</a><p>A week-year with a number <var title="">year</var> that
+  corresponds to a year <var title="">year</var> in the Gregorian
+  calendar that has a Thursday as its first day (January 1st), and a
+  week-year <var title="">year</var> where <var title="">year</var> is
+  a number divisible by 400, or a number divisible by 4 but not by
+  100, has 53 weeks. All other week-years have 52 weeks.<p>The <dfn id=week-number-of-the-last-day>week number of the last day</dfn> 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.<p class=note>The week-year number of a particular day can be
+  different than the number of the year that contains that day in the
+  Gregorian calendar. The first week in a week-year <var title="">year</var> is the week that contains the first Thursday of
+  the Gregorian year <var title="">year</var>.<p>A string is a <dfn id=valid-week-string>valid week string</dfn> representing a
+  week-year <var title="">year</var> and week <var title="">week</var>
+  if it consists of the following components in the given order:<ol><li>Four or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing <var title="">year</var></li>
 
    <li>A U+002D HYPHEN-MINUS character (-)</li>
 
@@ -2690,12 +2706,12 @@
    <li>Two <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>,
    representing the week <var title="">week</var>, in the range
    1&nbsp;&le;&nbsp;<var title="">week</var>&nbsp;&le;&nbsp;<var title="">maxweek</var>, where <var title="">maxweek</var> is the
-   <a href=#week-number-of-the-last-day>week number of the last day</a> of year <var title="">year</var></li>
+   <a href=#week-number-of-the-last-day>week number of the last day</a> of week-year <var title="">year</var></li>
 
   </ol><p>The rules to <dfn id=parse-a-week-string>parse a week string</dfn> are as follows. This
-  will either return a year and week, or nothing. If at any point the
-  algorithm says that it "fails", this means that it is aborted at
-  that point and returns nothing.<ol><li><p>Let <var title="">input</var> be the string being
+  will either return a week-year number and week number, or
+  nothing. If at any point the algorithm says that it "fails", this
+  means that it is aborted at that point and returns nothing.<ol><li><p>Let <var title="">input</var> be the string being
    parsed.</li>
 
    <li><p>Let <var title="">position</var> be a pointer into <var title="">input</var>, initially pointing at the start of the
@@ -2711,7 +2727,7 @@
    then fail. Otherwise, move <var title="">position</var> forwards
    one character.</li>
 
-   <li><p>If <var title="">position</var> is beyond the end of <var title="">input</var> or if the character at <var title="">position</var> is not a 0057 LATIN CAPITAL LETTER W
+   <li><p>If <var title="">position</var> is beyond the end of <var title="">input</var> or if the character at <var title="">position</var> is not a U+0057 LATIN CAPITAL LETTER W
    character, then fail. Otherwise, move <var title="">position</var>
    forwards one character.</li>
 
@@ -2730,7 +2746,8 @@
    <li><p>If <var title="">position</var> is <em>not</em> beyond the
    end of <var title="">input</var>, then fail.</li>
 
-   <li><p>Return <var title="">year</var> and <var title="">week</var>.</li>
+   <li><p>Return the week-year number <var title="">year</var> and the
+   week number <var title="">week</var>.</li>
 
   </ol><h5 id=vaguer-moments-in-time><span class=secno>2.4.4.7 </span>Vaguer moments in time</h5><p>This section defines <dfn id=date-or-time-string title="date or time string">date or
   time strings</dfn>. There are two kinds, <dfn id=date-or-time-string-in-content title="date or time
@@ -18983,7 +19000,7 @@
      <td> A month control
     <tr><td> <dfn id=attr-input-type-week-keyword title=attr-input-type-week-keyword><code>week</code></dfn>
      <td> <a href=#week-state title=attr-input-type-week>Week</a>
-     <td> A date consisting of a year and a week number with no time zone
+     <td> A date consisting of a week-year number and a week number with no time zone
      <td> A week control
     <tr><td> <dfn id=attr-input-type-time-keyword title=attr-input-type-time-keyword><code>time</code></dfn>
      <td> <a href=#time-state title=attr-input-type-time>Time</a>

Received on Friday, 31 October 2008 22:12:18 UTC