<?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>18195</bug_id>
          
          <creation_ts>2012-07-18 17:38:13 +0000</creation_ts>
          <short_desc>HTMLCollection.prototype.namedItem behavior not defined for HTMLPropertiesCollection</short_desc>
          <delta_ts>2013-03-17 22:11:37 +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>HTML Microdata (editor: Ian Hickson)</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/#htmlpropertiescollection-0</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="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>dzbarsky</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>robin</cc>
    
    <cc>silviapfeiffer1</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>70856</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-07-18 17:38:13 +0000</bug_when>
    <thetext>This was was cloned from bug 17201 as part of operation convergence.
Originally filed: 2012-05-25 23:23:00 +0000

================================================================================
 #0   contributor@whatwg.org                          2012-05-25 23:23:42 +0000 
--------------------------------------------------------------------------------
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html
Multipage: http://www.whatwg.org/C#htmlpropertiescollection-0
Complete: http://www.whatwg.org/c#htmlpropertiescollection-0

Comment:
HTMLCollection.prototype.namedItem behavior not defined for
HTMLPropertiesCollection

Posted from: 71.184.125.56 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/15.0 Firefox/15.0a1
================================================================================
 #1   Boris Zbarsky                                   2012-05-25 23:26:19 +0000 
--------------------------------------------------------------------------------
In particular, the spec for HTMLPropertiesCollection says:

    legacycaller getter PropertyNodeList? namedItem(DOMString name); // overrides inherited namedItem()

But the &quot;inherited&quot; namedItem can still be applied to HTMLPropertiesCollection objects, and the behavior of that needs to be defined.  HTMLCollection says in an informative note:

  The namedItem() method returns an object for interfaces that inherit from this
  interface, which return other objects for historical reasons. 

and the IDL is:

    getter object? namedItem(DOMString name);

so what you probably want to do here is not override it at all and just say in normative prose that the object returned, if any, is a PropertyNodeList.
================================================================================
 #2   Boris Zbarsky                                   2012-05-25 23:29:36 +0000 
--------------------------------------------------------------------------------
Note that the Gecko implementation will be assuming the spec is fixed as I suggest.
================================================================================</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84325</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-03-13 11:28:14 +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-v2.html

Status: Accepted
Change Description: 
https://github.com/w3c/html/commit/7c5d46081ffeeb4d8c2fe07ed9ec67cf31924f39

Rationale: adopted resolution from WHATWG</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84327</commentid>
    <comment_count>2</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-03-13 11:29:48 +0000</bug_when>
    <thetext>Gosh, closed wrong bug, sorry!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84328</commentid>
    <comment_count>3</comment_count>
    <who name="Robin Berjon">robin</who>
    <bug_when>2013-03-13 11:31:18 +0000</bug_when>
    <thetext>Hahaha :)

I&apos;m making it ASSIGNED rather than REOPENED since the latter has a specific meaning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84535</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapfeiffer1</who>
    <bug_when>2013-03-17 22:11:37 +0000</bug_when>
    <thetext>Assigning to correct component.


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-v2.html

Status: Accepted
Change Description:
https://github.com/w3c/html/commit/82c990a7ef7b7c71ecf5aa739388fbacf8adc898

Rationale: Accepted WHATWG resolution, see bug 17201 .

    Instead of overriding namedItem() calls, shadow them, so both
    HTMLCollection.prototype.namedItem and HTMLCollection.namedItem
    work.
    
    Closes W3C bug: https://www.w3.org/Bugs/Public/show_bug.cgi?id=18195
    Also note: https://www.w3.org/Bugs/Public/show_bug.cgi?id=17161
    for removal of legacycaller from HTMLPropertiesCollection.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>