blob: c8d6fb862fe3b5eb1a9e012a11f78f3b7036bb04 [file] [log] [blame]
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns="">
<title>createContextualFragment from &lt;html&gt; element range in XHTML document.</title>
<p>Test of createContextualFragment from a Range whose context is an XHTML document. If the test succeeds you will see the word "PASS" below.</p>
<p id="result"></p>
if (window.testRunner)
var range = document.createRange();
var fragment = range.createContextualFragment('&lt;p id="frag">Inserted fragment&lt;/p>');
var p = document.getElementById('frag');
var result = document.getElementById('result');
result.textContent = (p &amp;&amp; p.parentElement === document.body &amp;&amp; p.namespaceURI === '') ? 'PASS' : 'FAIL';