<?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>28150</bug_id>
          
          <creation_ts>2015-03-06 05:58:36 +0000</creation_ts>
          <short_desc>state requirement for the &lt;select&gt; element more precisely/clearly</short_desc>
          <delta_ts>2015-08-28 06:50:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://github.com/whatwg/html/pull/16</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael[tm] Smith">mike</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>118381</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-03-06 05:58:36 +0000</bug_when>
    <thetext>https://html.spec.whatwg.org/multipage/forms.html#the-select-element

To state one of the spec requirements for the &lt;select&gt; element more clearly, I suggest revising it to say this:

If a select element has a required attribute specified, does not have a multiple attribute specified, and *does not have a &quot;sizes&quot; attribute with a value greater than 1*, then the select element must have a placeholder label option.

The current language in the spec says this:

If a select element has a required attribute specified, does not have a multiple attribute specified, and *has a display size of 1*, then the select element must have a placeholder label option.

But the thing is, if the multiple attribute isn&apos;t specified, the only way to control the &quot;display size&quot; is by explicitly specifying the &quot;size&quot; attribute.

So for the case of stating this particular requirement, we might better dispense with indirectly stating it in terms of the abstract &quot;display size&quot; concept, and more precisely and clearly state it in terms of the concrete &quot;size&quot; attribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118395</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-03-06 17:12:00 +0000</bug_when>
    <thetext>That seems like an abstraction violation.

What if one day we make something else change the display size?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120648</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-06-02 00:30:37 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #1)
&gt; That seems like an abstraction violation.
&gt; 
&gt; What if one day we make something else change the display size?

OK, so let&apos;s either make it include the clarification inline:

&quot;If a select element has a required attribute specified, does not have a multiple attribute specified, and has a display size of 1 (that is, it does not have a &quot;sizes&quot; attribute with a value greater than 1), then the select element must have a placeholder label option.&quot;

or make it a note that follows, like this:

&quot;If a select element has a required attribute specified, does not have a multiple attribute specified, and *has a display size of 1*, then the select element must have a placeholder label option.

&quot;Note: In practice, the requirement stated in the paragraph above can only apply when a select element does not have a &quot;sizes&quot; attribute with a value greater than 1 (since a select element can currently only have a display size of 1 if it does not have a &quot;sizes&quot; attribute with a value greater than 1).&quot;

That way if/when we do ever actually make something else change the display size, then we can remove that inline clarification or the note.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122812</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-08-28 04:32:02 +0000</bug_when>
    <thetext>I don&apos;t feel strongly about this to keep it open. I (or somebody) can re-raise it at github if we want to re-pursue it in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122820</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-08-28 06:50:58 +0000</bug_when>
    <thetext>See https://github.com/whatwg/html/pull/16</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>