Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / w3c / web-platform-tests / html-templates / parsing-html-templates / additions-to-the-in-frameset-insertion-mode / end-tag-frameset.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>HTML Templates: additions to 'in frameset' insertion mode</title>
5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru">
6 <meta name="assert" content="If parser is in 'in frameset' insertion mode and meets frameset end tag then if the stack of open elements has a template element in html scope then this is a parse error; ignore the token">
7 <link rel="help" href="http://www.w3.org/TR/2013/WD-html-templates-20130214/#in-head-addition">
8 <script src="../../../../../resources/testharness.js"></script>
9 <script src="../../../../../resources/testharnessreport.js"></script>
10 <script src='../../testcommon.js'></script>
11 <link rel="stylesheet" href="../../../../../resources/testharness.css">
12 </head>
13 <body>
14 <div id="log"></div>
15 <script type="text/javascript">
16
17 testInIFrame('../../resources/frameset-end-tag.html', function(context) {
18     var doc = context.iframes[0].contentDocument;
19
20     var frameset = doc.querySelector('frameset');
21     assert_equals(frameset.children.length, 1, 'Wrong number of frameset children elements');
22
23     var template = frameset.querySelector('template');
24     assert_equals(template.tagName, 'TEMPLATE', 'FRAMESET should contain template element');
25     assert_equals(template.content.childNodes.length, 0,
26             'Template content should be empty');
27
28 }, '</frameset> tag should be ignored if there\'s TEMPLATE element in '
29     + 'the stack of open elements');
30
31 </script>
32 </body>
33 </html>