Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Range / create-contextual-fragment-from-detached-text-node-range.html
blob6d033b4bed4e679d984ddeb5e315b32d5a3835e2
1 <!DOCTYPE html>
2 <p>Test of createContextualFragment from a Range whose context is a detached text node. If the test succeeds you will see the word "PASS" below.</p>
3 <p id="result"></p>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 var textNode = document.createTextNode("Text node without an element parent");
9 var range = document.createRange();
10 range.setStart(textNode, 0);
11 var fragment = range.createContextualFragment('<p id="fragment">Inserted fragment</p>');
12 document.body.appendChild(fragment);
13 var p = document.getElementById('fragment');
15 var result = document.getElementById('result');
16 result.textContent = (p && p.parentElement === document.body && p.namespaceURI === 'http://www.w3.org/1999/xhtml') ? 'PASS' : 'FAIL';
17 </script>