Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLTemplateElement / cloneNode.html
blob2bdc02b95694b6775d604ed7bb67302493258397
1 <!DOCTYPE html>
2 <template id="template"><span>Contents</span></template>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
6 description('Test that template contents are not cloned when the template element is cloned');
8 var template = document.getElementById('template');
9 var div = template.appendChild(document.createElement('div'));
11 shouldBe('template.content.childNodes.length', '1');
12 var clone = template.cloneNode(true);
13 shouldBe('clone.content.childNodes.length', '1');
14 shouldBe('clone.outerHTML', 'template.outerHTML');
15 shouldNotBe('clone.content.firstChild', 'template.content.firstChild');
16 shouldNotBe('clone.content', 'template.content');
17 shouldBe('clone.firstChild.tagName', '"DIV"');
18 shouldNotBe('clone.firstChild', 'div');
20 </script>