[Webkit-unassigned] [Bug 73911] <li value="0"> behaves like <li> (the same for negative numbers)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 6 14:54:45 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=73911


Florin Malita <fmalita at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fmalita at google.com




--- Comment #1 from Florin Malita <fmalita at google.com>  2011-12-06 14:54:45 PST ---
Previous versions of the spec are somewhat ambiguous, but the current draft is pretty clear:

http://www.w3.org/TR/2011/WD-html5-20110525/grouping-content.html#the-li-element

"The value attribute, if present, must be a valid integer giving the ordinal value of the list item.

If the value attribute is present, user agents must parse it as an integer, in order to determine the attribute's value. If the attribute's value cannot be converted to a number, the attribute must be treated as if it was absent."

http://www.w3.org/TR/2011/WD-html5-20110525/common-microsyntaxes.html#valid-integer

"A string is a valid integer if it consists of one or more characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9), optionally prefixed with a U+002D HYPHEN-MINUS character (-)."

Patch coming up.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list