Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / create-contextual-fragment-namespaces2.html
blob9baaf56d3b4aa8d4758b95e21ed366eac76384c1
1 <!DOCTYPE html>
2 <p>Test of Range.createContextualFragment() with in-scope namespace prefixes on elements. If the test succeeds you will see the word "PASS" below.</p>
3 <p id="result"></p>
4 <script type="text/javascript">
5 function onIframeLoad() {
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 var result = document.getElementById("result");
10 result.textContent = "FAIL";
12 var iframe = document.getElementById("iframe"),
13 doc = iframe.contentDocument,
14 range = doc.createRange(),
15 docFragment;
17 var defs = doc.getElementById("defs");
18 range.setStart(defs, 0);
19 docFragment = range.createContextualFragment("<\u0108:test id='test1'/><\u015D:test id='test2'/>");
20 defs.appendChild(docFragment);
22 var test1 = doc.getElementById("test1");
23 if (test1.namespaceURI != "urn:x-test:U+0108") {
24 result.textContent += " - #test1 is in the wrong namespace";
25 return;
27 var test2 = doc.getElementById("test2");
28 if (test2.namespaceURI != "urn:x-test:U+015D") {
29 result.textContent += " - #test2 is in the wrong namespace";
30 return;
33 result.textContent = "PASS";
35 </script>
36 <iframe id="iframe" src="resources/svg-document-ns2.svg" onload="onIframeLoad()"></iframe>