Steps to reproduce
children.namedItem(‘key’) return only element by id and not scale on name attribute.
The namedItem(key) method must run these steps:
If key is the empty string, return null.
Return the first element in the collection for which at least one of the following is true:
it has an ID which is key.
it has a name attribute whose value is key;
or null if there is no such element.
Step to reproduce
Add some elements with name attributes to body (or any element) and
document.body.children.namedItem(key) return null.
with id works correctly.
I create a JSFiddle with example:
Comments and activity
Changed Steps to Reproduce
- Microsoft Edge Team
Changed Assigned To to “James M.”
Changed Assigned To to “Travis L.”
Changed Status to “Confirmed”