[Webkit-unassigned] [Bug 44887] On <select>, setting reflected attribute size to negative number should throw exception

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 17 10:38:51 PDT 2011


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





--- Comment #4 from Aryeh Gregor <Simetrical+webkit at gmail.com>  2011-03-17 10:38:51 PST ---
Yeah, it turns out that the spec as written is not web-compatible:

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12288

The preexisting behavior in IE is to throw an exception on negative numbers but not on 0, and the preexisting behavior in all other browsers is to accept any value.  The spec requires throwing an exception on negative numbers and on 0, which is not only probably not web-compatible, but also insane -- as Mounir points out, it means

var select = document.createElement('select');
select.size = select.size;

throws an exception.

Mounir suggests that the spec be changed to match IE's behavior.  If you think it should be changed to other browsers' behavior, it would be a good idea to comment on that bug.

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