Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/semantics/scripting-1/the-template-element/additions-to-parsing-xhtml-documents/tag-name.xhtml - WPT Dashboard Interop Dashboard
<head>
<title>tagName in template</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<template><div></div></template>
<div id="log"></div>
<script><![CDATA[
test(function() {
assert_equals(document.getElementsByTagName("template")[0].content.firstChild.tagName, 'div', "tagName case");
}, "tagName case");
]]></script>
</body>
</html>