[Bug 9935] New: select tag's size attribute default value discrepency

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

           Summary: select tag's size attribute default value discrepency
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: ccjensen.bugzilla@mailnull.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html@w3.org


Created an attachment (id=888)
 --> (http://www.w3.org/Bugs/Public/attachment.cgi?id=888)
Test case for default size reported in DOM

It seems that neither Opera (latest build), Firefox v3.6.3, Chrome v6.0.427.0
(dev) nor Internet Explorer 8 (v8.0.6001.18702) implements this spec for the
select's size tag (HTML5):

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

I have attached a few test cases. They all pass if a size is
specifically set, but all seem to report 0 if size is set to an invalid
value or not set at all. Seems to me that the spec says the default
should be 1.

Either all browsers need to change their implementations, or the spec needs to
define the default value as 0 instead of 1.

-- 
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 Wednesday, 16 June 2010 09:33:29 UTC