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 24622 - document.all should look at <input name>, <select name>
Summary: document.all should look at <input name>, <select name>
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 21:01 UTC by contributor
Modified: 2014-02-21 22:09 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2014-02-11 21:01:42 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
Referrer: 

Comment:
Based on my testing (http://jsfiddle.net/jAx2t/4/) document.all's named getter
returns by name select and input elements as well in IE11 / Chrome 32 /
Firefox . Should the specification be updated to match the behavior of
existing implementations?

Posted from: 63.166.115.40
User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
Comment 1 Chris Dumez 2014-02-11 22:24:42 UTC
Firefox 27 also returns select and input elements by name (also tested with http://jsfiddle.net/jAx2t/4/).
Comment 2 contributor 2014-02-21 22:09:45 UTC
Checked in as WHATWG revision r8501.
Check-in comment: Update the list of elements that support name='' attributes for the purposes of document.all (mostly using the IE/Firefox lists, which are nearly identical, and a superset of Safari/Chrome)
http://html5.org/tools/web-apps-tracker?from=8500&to=8501