getElementById is not implemented on DocumentFragment

Fixed Issue #15153720


Tim v.
Dec 19, 2017
This issue is public.
Found in
  • Microsoft Edge
Standard affected
DOM Standard

Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Per DocumentFragment must implement the mixin NonElementParentNode which defines the method getElementById. The corresponding test is on called "DocumentFragment interface: operation getElementById(DOMString)" which fails in Edge, but passes in all other browsers.

You can run an example JSBin at,console,output which should show up function getElementById() { [native code] }, but shows undefined in Edge 16 instead.

In our case, it crashes our website, as we are cloning the template.content (which is a DocumentFragment) and call getElementById on it.


Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

  • Hi Tim,

    I was able to repo this issue in 16299.125.

    I ran the same test page on a recent development build and that test is now passing.  See the attached screenshot.

    Thank you for the submission,


  • Microsoft Edge Team

    Changed Status to “Fixed”

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

Sign in