<?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>11162</bug_id>
          
          <creation_ts>2010-10-28 21:26:44 +0000</creation_ts>
          <short_desc>select.size should either be web-compatible or make sense, take your pick</short_desc>
          <delta_ts>2011-08-04 05:02:27 +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>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-select-element</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>bzbarsky</cc>
    
    <cc>ehsan</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>mounir</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>41821</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-10-28 21:26:44 +0000</bug_when>
    <thetext>Section: http://www.whatwg.org/specs/web-apps/current-work/#the-select-element

Comment:
This test case alerts 0 in all current released browsers:
data:text/html,&lt;!doctype html&gt;&lt;script&gt;var el =
document.createElement(&quot;select&quot;); el.multiple = true; alert(el.size);&lt;/script&gt;
 As it stands, the spec says it should alert 1.  While we&apos;re in the habit of
making the world making more sense, why not say that the default for the size
IDL attribute is the same as for the size content attribute, namely that it&apos;s
4 if multiple is set and 1 otherwise?  (What does it even mean for a content
attribute to have a default?)

Posted from: 68.175.61.233</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41822</commentid>
    <comment_count>1</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-10-28 21:31:10 +0000</bug_when>
    <thetext>I meant to add, the spec used to imply this until this commit:

http://lists.whatwg.org/pipermail/commit-watchers-whatwg.org/2010/004731.html

But then it went back to saying 1 across the board for some reason.  Note that Firefox 4 does the 1-and-4 thing like the old spec version.  volkmar and smaug mentioned something in #whatwg about a regression bug, but anyway, I can&apos;t see how &quot;1 across the board&quot; is any more web-compatible than &quot;sometimes 1 and sometimes 4&quot; if all current browsers make the default 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41823</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2010-10-28 21:35:36 +0000</bug_when>
    <thetext>Okay, here&apos;s the Mozilla bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=603141

So maybe it should just have a default of 0, or maybe all unsigned longs limited to only positive values should if no other default is specified.  See also bug 10354, which is related.  But it shouldn&apos;t have a default of 1 across the board, that makes no sense from any perspective.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44523</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-01-20 23:45:16 +0000</bug_when>
    <thetext>I&apos;ve changed it to zero per the Gecko bug. I haven&apos;t changed this for the other attributes; please file a separate bug for them if you think they should change (IIRC that change was the right change for the other attributes, and select.size is special).

Re comment 1, I don&apos;t see how that patch affects this.

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: Concurred with one of the reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44524</commentid>
    <comment_count>4</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-01-20 23:45:39 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5793.
Check-in comment: change select.size once more, to match browsers
http://html5.org/tools/web-apps-tracker?from=5792&amp;to=5793</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52543</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:02:27 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>