<?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>27207</bug_id>
          
          <creation_ts>2014-10-31 13:17:54 +0000</creation_ts>
          <short_desc>Rendering option element with empty label attribute</short_desc>
          <delta_ts>2014-12-04 01:25:26 +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>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#the-select-element-2:concept-option-label</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
    
    <cc>zcorpan</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114317</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-10-31 13:17:54 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/rendering.html
Multipage: https://html.spec.whatwg.org/multipage/#the-select-element-2:concept-option-label
Complete: https://html.spec.whatwg.org/#the-select-element-2:concept-option-label
Referrer: https://html.spec.whatwg.org/multipage/index.html

Comment:
Rendering option element with empty label attribute

Posted from: 91.180.155.79
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114320</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2014-10-31 13:24:55 +0000</bug_when>
    <thetext>http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3277 renders &quot;text&quot; for the option in Firefox (because it doesn&apos;t implement [label] at all), Safari (thanks to Anne for checking), IE11 and Chrome.

Note that this does not match what they all implement for HTMLOptionElement#label.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114467</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-11-04 00:40:05 +0000</bug_when>
    <thetext>&gt; Note that this does not match what they all implement for
&gt; HTMLOptionElement#label.

What do you mean by &quot;HTMLOptionElement#label&quot;, exactly?

Chrome and Firefox seem to work as specced (modulo treating label=&quot;&quot; with the empty string as if the attribute was missing):
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/3285</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114471</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2014-11-04 07:11:24 +0000</bug_when>
    <thetext>Foo#bar is shorthand for Foo.prototype.bar.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114476</commentid>
    <comment_count>4</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2014-11-04 08:56:52 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #2)
&gt; modulo treating label=&quot;&quot; with the empty string as if the attribute was missing

That&apos;s exactly what I filed this bug for, yes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115870</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-12-03 21:30:52 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8868.
Check-in comment: Match reality: the label in &lt;option label=&apos;&apos;&gt; is ignored if empty.
https://html5.org/tools/web-apps-tracker?from=8867&amp;to=8868</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115893</commentid>
    <comment_count>6</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2014-12-04 00:18:17 +0000</bug_when>
    <thetext>This broke the IDL attribute...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115897</commentid>
    <comment_count>7</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-12-04 01:06:12 +0000</bug_when>
    <thetext>Oh, I see. I thought you were talking about setter behaviour, but you were talking about the getter behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115898</commentid>
    <comment_count>8</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-12-04 01:25:13 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r8871.
Check-in comment: Fix mistakes resulting from earlier checkins (meta, &lt;option&gt;.label)
https://html5.org/tools/web-apps-tracker?from=8870&amp;to=8871</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>