[Webkit-unassigned] [Bug 44887] New: On <select>, setting reflected attribute size to negative number should throw exception
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 30 12:31:37 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=44887
Summary: On <select>, setting reflected attribute size to
negative number should throw exception
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Minor
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: Simetrical+webkit at gmail.com
Spec:
"""
If a reflecting IDL attribute is an unsigned integer type (unsigned long) that is limited to only non-negative numbers greater than zero, . . . On setting, if the value is zero, the user agent must fire an INDEX_SIZE_ERR exception.
"""
http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#reflecting-content-attributes-in-idl-attributes
"The size IDL attribute is limited to only non-negative numbers greater than zero . . ."
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#dom-select-size
Test case:
<!doctype html>
<script>
var el = document.createElement("select");
try {
el.size = 0;
alert(el.size);
} catch (e) {
alert(e);
}
</script>
Chrome dev on Ubuntu and Safari 5 on XP alert "1". Recentish Firefox nightly throws an exception per spec, Opera 10.60 and IE8 alert "0".
--
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