children.namedItem() don't scale on name attribute

Confirmed Issue #12103400 • Assigned to Kris K.

Details

Author
Marco M.
Created
May 23, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Standard affected
DOM Standard

Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Issue

children.namedItem(‘key’) return only element by id and not scale on name attribute.

from w3.org:
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:
https://jsfiddle.net/MarkJackMilian/fvxc0msn/

Attachments

0 attachments

    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”

      Changed Assigned To from “Travis L.” to “Kris K.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in