Index: LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html |
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html b/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b64143af15080263e4521e09c759ca54780d8d7f |
--- /dev/null |
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/scripting-1/the-template-element/template-element/template-descendant-head.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<title>HTML Templates: Template element as a descendant of the head element.</title> |
+<meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru"> |
+<meta name="assert" content="Template element can be a descendant of the head element"> |
+<link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#template-element"> |
+<script src="../../../../../../../resources/testharness.js"></script> |
+<script src="../../../../../../../resources/testharnessreport.js"></script> |
+<script src='../testcommon.js'></script> |
+<link rel="stylesheet" href="../../../../../../../resources/testharness.css"> |
+</head> |
+<body> |
+<div id="log"></div> |
+<script type="text/javascript"> |
+ |
+testInIFrame('../resources/template-descendant-head.html', function(context) { |
+ var doc = context.iframes[0].contentDocument; |
+ |
+ assert_not_equals(doc.head.querySelector('template'), null, |
+ 'Template element should be a descendant of the head element'); |
+ |
+}, 'Template element as a descendant of the head element. Test loading from a file'); |
+ |
+</script> |
+</body> |
+</html> |