- From: <bugzilla@jessica.w3.org>
- Date: Thu, 12 Aug 2010 20:32:48 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10354 Summary: "Zero is not allowed" is unclear as normative text. What happens if you do an IDL get on size for <select size=0>? Does it return 0 or 1? Browsers disagree: Gecko and WebKit return 1, IE and Opera return 0. At least in the case of <select size=0>, ret Product: HTML WG Version: unspecified Platform: Other URL: http://www.whatwg.org/specs/web-apps/current-work/#ref lecting-content-attributes-in-idl-attributes OS/Version: other Status: NEW Severity: normal Priority: P3 Component: HTML5 spec (editor: Ian Hickson) AssignedTo: ian@hixie.ch ReportedBy: contributor@whatwg.org QAContact: public-html-bugzilla@w3.org CC: mike@w3.org, public-html@w3.org Section: http://www.whatwg.org/specs/web-apps/current-work/#reflecting-content-attributes-in-idl-attributes Comment: "Zero is not allowed" is unclear as normative text. What happens if you do an IDL get on size for <select size=0>? Does it return 0 or 1? Browsers disagree: Gecko and WebKit return 1, IE and Opera return 0. At least in the case of <select size=0>, returning 1 makes more sense, since that's how it's displayed in all browsers. Maybe you could also update the section on select to say that the display size is 1 if it would otherwise be 0, or make a new algorithm "rules for parsing positive integers" and use that. Test case: <!doctype html><script>var el = document.createElement("select"); el.setAttribute("size", "0"); alert(el.size);</script> Posted from: 68.175.61.233 -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Thursday, 12 August 2010 20:32:50 UTC