<?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>26535</bug_id>
          
          <creation_ts>2014-08-07 01:41:34 +0000</creation_ts>
          <short_desc>The selected IDL attribute should also reflect the selected HTML attribute. This would be of benefit to devtools, and just generally result in less dissonance in the DOM.</short_desc>
          <delta_ts>2014-09-12 18:07:48 +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>WONTFIX</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-option-element</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>caitpotter88</cc>
    
    <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>110013</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-08-07 01:41:34 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/forms.html
Multipage: http://www.whatwg.org/C#the-option-element
Complete: http://www.whatwg.org/c#the-option-element
Referrer: 

Comment:
The selected IDL attribute should also reflect the selected HTML attribute.
This would be of benefit to devtools, and just generally result in less
dissonance in the DOM.

Posted from: 99.237.75.191
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110014</commentid>
    <comment_count>1</comment_count>
    <who name="caitp">caitpotter88</who>
    <bug_when>2014-08-07 01:57:20 +0000</bug_when>
    <thetext>To expand on that, it would be useful for developer tools because it&apos;s useful for the DOM to reflect the actual state of the element. The presence of the &quot;selected&quot; attribute seems to indicate that the element is selected, but because the attribute is reflected, this might actually be incorrect.

Also, reflecting `selected` would possibly be of some use to persons styling the control with CSS, too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110028</commentid>
    <comment_count>2</comment_count>
    <who name="caitp">caitpotter88</who>
    <bug_when>2014-08-07 13:53:50 +0000</bug_when>
    <thetext>The `defaultSelected` attribute is a bit of an issue, I&apos;m not sure how many sites are using it, but if there was room for a breaking change, I&apos;d want that to reflect a `default` attribute instead, again because of the dissonance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110153</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-08-13 18:34:58 +0000</bug_when>
    <thetext>Changing this would radically change the semantics of the API. It&apos;s highly unlikely that we can change this decade+ old API at this point.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110154</commentid>
    <comment_count>4</comment_count>
    <who name="caitp">caitpotter88</who>
    <bug_when>2014-08-13 18:37:50 +0000</bug_when>
    <thetext>Yeah, I&apos;ve seen that this probably breaks things pretty bad =( If it&apos;s ever possible to change this into a less awful state of being, I&apos;d love for that to happen.

But I guess for the time being it&apos;s probably a non-starter :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111453</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-09-12 18:07:48 +0000</bug_when>
    <thetext>Closing per comment 4.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>