<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>9935</bug_id>
          
          <creation_ts>2010-06-16 09:33:23 +0000</creation_ts>
          <short_desc>select tag&apos;s size attribute default value discrepency</short_desc>
          <delta_ts>2010-10-04 14:45:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>pre-LC1 HTML5 spec (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ccjensen.bugzilla</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36206</commentid>
    <comment_count>0</comment_count>
      <attachid>888</attachid>
    <who name="">ccjensen.bugzilla</who>
    <bug_when>2010-06-16 09:33:23 +0000</bug_when>
    <thetext>Created attachment 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&apos;s size tag (HTML5):

&quot;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&apos;s default value is 4. If the multiple
attribute is absent, then the size attribute&apos;s default value is 1.&quot;

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38048</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-08-27 23:09:07 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: I&apos;ve added a clarifying statement to the spec, but the spec was correct — you were testing the IDL attribute, which is defined separately (and has no default).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38050</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-08-27 23:13:29 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5380.
Check-in comment: Clarify input.size behaviour.
http://html5.org/tools/web-apps-tracker?from=5379&amp;to=5380</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>888</attachid>
            <date>2010-06-16 09:33:23 +0000</date>
            <delta_ts>2010-06-16 09:33:23 +0000</delta_ts>
            <desc>Test case for default size reported in DOM</desc>
            <filename>select-size-002.html</filename>
            <type>text/html</type>
            <size>543</size>
            <attacher>ccjensen.bugzilla</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxtZXRhIGNoYXJzZXQ9InV0Zi04IiAvPgo8dGl0bGU+c2VsZWN0IGRl
ZmF1bHQgc2l6ZSBhY2Nlc3NpYmxlIGluIERPTTwvdGl0bGU+Cgo8cD4KCUJlbG93IHlvdSBzaG91
bGQgc2VlIGRyb3AgZG93biBsaXN0IGNvbnRhaW5pbmcgImZvb2JhciIuIAoJSXQgaGFzIG5vIHNp
emUgc2V0LiBUaGUgcGFnZSBzaG91bGQgY29udGFpbiDigJxQQVNT4oCdLgo8L3A+Cgo8Zm9ybT4K
CTxwPgoJCTxzZWxlY3QgaWQ9InRlc3QiIG5hbWU9InRlc3QiPjxvcHRpb24+Zm9vYmFyPC9vcHRp
b24+PC9zZWxlY3Q+Cgk8L3A+CjwvZm9ybT4KCjxwIGlkPSJyZXN1bHQiPjwvcD4KCjxzY3JpcHQ+
Cgl2YXIgdGVzdCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJ0ZXN0Iik7Cgl2YXIgcmVzdWx0
ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoInJlc3VsdCIpOwoKCWlmICh0ZXN0LnNpemUgPT0g
MSkgewoJCXJlc3VsdC5pbm5lckhUTUwgPSAiUEFTUyI7Cgl9IGVsc2UgewoJCXJlc3VsdC5pbm5l
ckhUTUwgPSAiRkFJTCI7Cgl9Cjwvc2NyaXB0PgoK
</data>

          </attachment>
      

    </bug>

</bugzilla>