Document Fragment does not support children property

Issue #10060579 • Assigned to Travis L.

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

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

Sign in