Document Fragment does not support children property

Issue #10060579 • Assigned to Kris K.

Details

Author
XFox P.
Created
Dec 5, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Standard affected
DOM Standard

Found in build #
38.14393
Reports
Reported by 3 people

Sign in to watch or report this issue.

Steps to reproduce

The children property is not implemented on document fragments, such as those returned by document.createDocumentFragment() or [HTMLTemplateElement].content.

// returns undefined in IE11 and Edge. Should return [object HTMLCollection]. Fine in Firefox and Chrome.
document.createDocumentFragment().children;

// .childNodes works as expected
document.createDocumentFragment().chidlNodes;

// .children is supported on HTML elements
document.body.children;

Attachments

1 attachment

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Travis L.”

  • In the HTML 5 spec, there is an Interface ParentNode mixin.

    See http://www.w3.org/TR/2014/WD-dom-20140204/#interface-parentnode

    Document, DocumentFragment, and Element are supposed to implement ParentNode.

    In Edge, Document and DocumentFragment do not implement ParentNode.

    Edge does implement the mixin for the element document.body.

    Chrome implements ParentNode in all three.

    See EdgeBug17.html.

  • Microsoft Edge Team

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

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

Sign in