[Webkit-unassigned] [Bug 44980] setAttribute() followed by getAttribute() on select.size does not return the same thing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 12 07:52:17 PST 2011


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





--- Comment #4 from Tab Atkins <tabatkins at google.com>  2011-12-12 07:52:17 PST ---
(In reply to comment #3)
> This should be an invalid bug?   Seems we shouldn't set the size of the select element to string.  As the HTML 5 specification shows :
> The size attribute gives the number of options to show to the user. The size attribute, if specified, must have a value that is a valid non-negative integer greater than zero. If the multiple attribute is present, then the size attribute's default value is 4. If the multiple attribute is absent, then the size attribute's default value is 1.
> http://www.w3.org/TR/2011/WD-html5-20110525/the-button-element.html#attr-select-size
> 4.10.9 The select element
> Not sure how Firefox can show the string value which seem isn't correct according to the specification.

I think I agree.  That text requires the attribute value to be parsed as a number, which should return 0 if passed "foo".  As well, the IDL attribute is defined as an unsigned long, so it shouldn't be capable of storing a string.

-- 
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