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

Confirmed Issue #12103400 • Assigned to Kris K.


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

Reported by 1 person

Sign in to watch or report this issue.

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:


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