HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2433

File a bug

SVNBugCommentTime (UTC)
2433[Conformance Checkers] Ban year zero. (credit: hs)2008-11-25 09:52
Index: source
===================================================================
--- source	(revision 2432)
+++ source	(revision 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>&nbsp;&gt;&nbsp;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>&nbsp;&gt;&nbsp;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,

|