<?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>9473</bug_id>
          
          <creation_ts>2010-04-10 01:40:37 +0000</creation_ts>
          <short_desc>add wording to explicitly indicate that option/@selected cannot be used unless as a descendant of select/@multiple</short_desc>
          <delta_ts>2010-10-04 14:32:02 +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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</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 name="Michael[tm] Smith">mike</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>
    
    <cc>w3c</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>34722</commentid>
    <comment_count>0</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-04-10 01:40:37 +0000</bug_when>
    <thetext>I can&apos;t find anywhere in the spec that states the conformance constraint that option element which is a descendant of a select elements can have a &quot;selected&quot; attribute only if its ancestor select element has a multiple attribute.

In contrast, the section on the file-upload state for the input element has a paragraph that says, &quot;Unless the multiple attribute is set, there must be no more than one file in the list of selected files&quot;.

I suggest adding a similar paragraph in the section on the option element and/or select element. For example: &quot;The select element cannot have more than one selected option element descendant unless the multiple attribute is specified.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34891</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2010-04-13 08:14:53 +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: Concurred with reporter&apos;s comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34892</commentid>
    <comment_count>2</comment_count>
    <who name="">contributor</who>
    <bug_when>2010-04-13 08:15:51 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5023.
Check-in comment: Make &lt;select&gt;&lt;option selected&gt;&lt;option selected&gt; non-conforming due to too many &apos;selected&apos;s.
http://html5.org/tools/web-apps-tracker?from=5022&amp;to=5023</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35044</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2010-04-15 03:09:30 +0000</bug_when>
    <thetext>cheers</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39001</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Kliehm">w3c</who>
    <bug_when>2010-09-14 14:16:06 +0000</bug_when>
    <thetext>Verified, 4.10.9 [1] says: 

If the multiple attribute is absent, whenever an option element in the select element&apos;s list of options has its selectedness set to true, and whenever an option element with its selectedness set to true is added to the select element&apos;s list of options, the user agent must set the selectedness of all the other option element in its list of options to false.

[1] http://dev.w3.org/html5/spec/the-button-element.html#the-select-element</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>