This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15184 - document.all.item(string) shouldn't do the same thing as HTMLCollection
Summary: document.all.item(string) shouldn't do the same thing as HTMLCollection
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 19:06 UTC by contributor
Modified: 2012-01-18 09:13 UTC (History)
7 users (show)

See Also:


Attachments
Patch (2.57 KB, patch)
2011-12-17 15:28 UTC, Ms2ger
Details

Description contributor 2011-12-14 19:06:51 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/common-dom-interfaces.html
Multipage: http://www.whatwg.org/C#htmlallcollection-0
Complete: http://www.whatwg.org/c#htmlallcollection-0

Comment:
document.all.item(string) shouldn't do the same thing as HTMLCollection

Posted from: 71.184.125.56 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0a1) Gecko/20111206 Firefox/11.0a1
Comment 1 Boris Zbarsky 2011-12-14 19:07:54 UTC
In particular, it seems to not be equivalent to converting the string to a number and passing that number to item().
Comment 2 Ms2ger 2011-12-16 19:44:57 UTC
See also bug 15201.
Comment 3 Ms2ger 2011-12-17 15:28:30 UTC
Created attachment 1052 [details]
Patch
Comment 4 Ian 'Hixie' Hickson 2012-01-17 23:02:49 UTC
EDITOR'S RESPONSE: This is an Editor'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's comments.