NOTE: The current preferred location for bug reports is the GitHub issue tracker.
Bug 391 - Ban year zero. (credit: hs)
Ban year zero. (credit: hs)
Status: NEW
Product: Validator.nu
Classification: Unclassified
Component: General
HEAD
All All
: P2 normal
Assigned To: Nobody
http://svn.whatwg.org/webapps/source?...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-04 16:47 CET by Henri Sivonen
Modified: 2009-11-23 17:17 CET (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henri Sivonen 2009-01-04 16:47:31 CET
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,