<?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>11963</bug_id>
          
          <creation_ts>2011-02-02 15:52:42 +0000</creation_ts>
          <short_desc>The namedItem(key) method must return the first node in the collection that matches the following requirements: •It is an a, applet, area, embed, form, frame, frameset, iframe, img, or object element with a name attribute equal to key, or, •It is an e</short_desc>
          <delta_ts>2011-08-04 05:06:45 +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>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</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>bzbarsky</cc>
    
    <cc>craig.e.shea</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</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>45019</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-02-02 15:52:42 +0000</bug_when>
    <thetext>Specification: http://dev.w3.org/html5/spec/Overview.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#top

Comment:
The namedItem(key) method must return the first node in the collection that
matches the following requirements:
•It is an a, applet, area, embed, form, frame, frameset, iframe, img, or
object element with a name attribute equal to key, or,
•It is an element with an ID equal to key.

This could be a potential problem. All elements can have an ID attribute. What
if you have an element with an ID attribute with the value &quot;foo&quot; which is part
of a collection and you have another element (from the list of applicable
elements) that has a name attribute with a value &quot;foo&quot; which is also a member
of the same collection. Which element is returned? Or is an array or another
collection of elements returned that contains all elements that have a name
attribute with the value &quot;foo&quot; and the element with the attribute ID with the
value &quot;foo&quot;?

Posted from: 71.224.184.28</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45020</commentid>
    <comment_count>1</comment_count>
    <who name="Craig S">craig.e.shea</who>
    <bug_when>2011-02-02 16:00:59 +0000</bug_when>
    <thetext>The specification clearly says &quot;return the first node in the collection that mathches the following requirements&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45022</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2011-02-02 16:34:22 +0000</bug_when>
    <thetext>Though the spec should make it clear that the node returned matches _either_ of the following requirements.  The &quot;or&quot; is really hard to notice; the up-front either would work better.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45054</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-02-03 09:29:47 +0000</bug_when>
    <thetext>Reopening on behalf of bz</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46245</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-03-03 23:56:06 +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: Partially Accepted
Change Description: see diff given below
Rationale: I&apos;ve fixed comment 2, but I don&apos;t understand comment 1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46246</commentid>
    <comment_count>5</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-03-03 23:56:27 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r5930.
Check-in comment: clarify that this is an &apos;or&apos; list.
http://html5.org/tools/web-apps-tracker?from=5929&amp;to=5930</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53104</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:06:45 +0000</bug_when>
    <thetext>mass-moved component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>