[html5] r2433 - [c] (0) Ban year zero. (credit: hs)

whatwg at whatwg.org whatwg at whatwg.org
Tue Nov 25 01:52:59 PST 2008


Author: ianh
Date: 2008-11-25 01:52:58 -0800 (Tue, 25 Nov 2008)
New Revision: 2433

Modified:
   index
   source
Log:
[c] (0) Ban year zero. (credit: hs)

Modified: index
===================================================================
--- index	2008-11-25 05:25:58 UTC (rev 2432)
+++ index	2008-11-25 09:52:58 UTC (rev 2433)
@@ -2741,7 +2741,7 @@
   <var title="">year</var> and month <var title="">month</var> if it
   consists of the following components in the given order:</p>
 
-  <ol><li>Four or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing <var title="">year</var></li>
+  <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> > 0</li>
 
    <li>A U+002D HYPHEN-MINUS character (-)</li>
 
@@ -2779,6 +2779,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>
@@ -3261,7 +3264,7 @@
   week-year <var title="">year</var> and week <var title="">week</var>
   if it consists of the following components in the given order:</p>
 
-  <ol><li>Four or more <a href=#concept-datetime-digit title=concept-datetime-digit>digits</a>, representing <var title="">year</var></li>
+  <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> > 0</li>
 
    <li>A U+002D HYPHEN-MINUS character (-)</li>
 
@@ -3289,6 +3292,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>

Modified: source
===================================================================
--- source	2008-11-25 05:25:58 UTC (rev 2432)
+++ source	2008-11-25 09:52:58 UTC (rev 2433)
@@ -2010,7 +2010,8 @@
 
    <li>Four or more <span
    title="concept-datetime-digit">digits</span>, representing <var
-   title="">year</var></li>
+   title="">year</var>, where <var
+   title="">year</var> > 0</li>
 
    <li>A U+002D HYPHEN-MINUS character (-)</li>
 
@@ -2061,6 +2062,9 @@
    fail. Otherwise, interpret the resulting sequence as a base-ten
    integer. Let that number be the <var title="">year</var>.</p></li>
 
+   <li><p>If <var title="">year</var> is not a number greater than
+   zero, then fail.</p></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,
@@ -2706,7 +2710,8 @@
 
    <li>Four or more <span
    title="concept-datetime-digit">digits</span>, representing <var
-   title="">year</var></li>
+   title="">year</var>, where <var
+   title="">year</var> > 0</li>
 
    <li>A U+002D HYPHEN-MINUS character (-)</li>
 
@@ -2741,6 +2746,9 @@
    fail. Otherwise, interpret the resulting sequence as a base-ten
    integer. Let that number be the <var title="">year</var>.</p></li>
 
+   <li><p>If <var title="">year</var> is not a number greater than
+   zero, then fail.</p></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,




More information about the Commit-Watchers mailing list