HTML5 Template Functionality Incorrectly Implemented

Fixed Issue #5475032

Details

Created
Nov 18, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

Create and HTML Page with this in it:
<template id="template1">
<div id="itemInTemplate">
</div>
</template>
<script type="text/javascript">
console.log(document.getElementById(“itemInTemplate”));
</script>

The console should not log anything, instead it logs a valid HTML node.

Expected Results:

The content within Templates should not be accessible. Only the template itself should be available, where it’s content can be used to insert Nodes, etc. per the spec: http://www.w3.org/TR/html5/scripting-1.html#the-template-element

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Christian F.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To from “Travis L.” to “IE S.”

      Changed Status to “Fixed”

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

    Sign in