spec/Overview.html 1.1605 2433 Ban year zero. (credit: hs) (whatwg r243

Ban year zero. (credit: hs) (whatwg r2433)

valid month string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1605.html#valid-month-string
parse a week string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1605.html#parse-a-week-string
valid week string
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1605.html#valid-week-string
2.4.4.1 Months
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1605.html#months
week number of the last day
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1605.html#week-number-of-the-last-day
parse a month component
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1605.html#parse-a-month-component

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1604&r2=1.1605&f=h
http://html5.org/tools/web-apps-tracker?from=2432&to=2433

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1604
retrieving revision 1.1605
diff -u -d -r1.1604 -r1.1605
--- Overview.html 25 Nov 2008 05:26:04 -0000 1.1604
+++ Overview.html 25 Nov 2008 09:53:02 -0000 1.1605
@@ -2264,7 +2264,7 @@
   Gregorian date with no timezone information and no date information
   beyond a year and a month. <a href=#references>[GREGORIAN]</a><p>A string is a <dfn id=valid-month-string>valid month string</dfn> representing a year
   <var title="">year</var> and month <var title="">month</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>
+  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>, where <var title="">year</var>&nbsp;&gt;&nbsp;0</li>
 
    <li>A U+002D HYPHEN-MINUS character (-)</li>
 
@@ -2298,6 +2298,9 @@
    fail. Otherwise, interpret the resulting sequence as a base-ten
    integer. Let that number be the <var title="">year</var>.</li>
 
+   <li><p>If <var title="">year</var> is not a number greater than
+   zero, then fail.</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 U+002D HYPHEN-MINUS character,
    then fail. Otherwise, move <var title="">position</var> forwards
    one character.</li>
@@ -2724,7 +2727,7 @@
   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>
+  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>, where <var title="">year</var>&nbsp;&gt;&nbsp;0</li>
 
    <li>A U+002D HYPHEN-MINUS character (-)</li>
 
@@ -2750,6 +2753,9 @@
    fail. Otherwise, interpret the resulting sequence as a base-ten
    integer. Let that number be the <var title="">year</var>.</li>
 
+   <li><p>If <var title="">year</var> is not a number greater than
+   zero, then fail.</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 U+002D HYPHEN-MINUS character,
    then fail. Otherwise, move <var title="">position</var> forwards
    one character.</li>

Received on Tuesday, 25 November 2008 09:56:31 UTC