node.contains(node) is not implemented and while element.contains(node) returns false for non element descendant nodes

Duplicate Issue #333105 • See Issue #103701

Details

Created
Jun 19, 2014
Privacy
This issue is public.
Duplicates
See progress on Bug #103701
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

<!DOCTYPE html>

<html>
<head>
<title>title</title>
</head>
<body>
<script>console.log("Does head contain a first text node child? " + document.documentElement.contains(document.head.firstChild));
console.log("But does head contain a first element child? " + document.documentElement.contains(document.head.firstElementChild));
</script>
</body>
</html>

Expected Results:

Does head contain a first text node child? true
But does head contain a first element child? true
But does head.firstChild implements contains? true

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “Eugene V.”

      Changed Assigned To from “Eugene V.” to “IE F.”

      Changed Status to “Duplicate”

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

    Sign in