[whatwg] Error: 2nd example datetime for the time element

Ernest Cline ernestcline at mindspring.com
Sun Apr 27 16:03:30 PDT 2008


In section 3.10.10, the second example is:
 <time datetime="2006-09-24 05:00 -7">

However, the algorithm given in 3.2.4.2 for parsing date or time strings requires that the timezone hour offset be exactly 2 digits.  (This is the same requirement ISO 8601 has.)  Hence, the example as given is invalid according to the provided parser algorithm, since it has only 1 digit.

Ernest Cline



More information about the whatwg mailing list