- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 25 Nov 2008 09:53:05 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv19384 Modified Files: Overview.html Log Message: Ban year zero. (credit: hs) (whatwg r2433) Index: Overview.html =================================================================== 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> > 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> > 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:53:21 UTC