6 testRunner
.dumpAsText();
8 var htmlDoc
= document
.implementation
.createHTMLDocument('');
11 htmlDoc
.write('<html><img id="theImage" src="/test"></html>');
13 var path
= htmlDoc
.getElementById('theImage').src
;
15 if (path
== 'file:///test')
16 document
.getElementById('result').innerHTML
= 'SUCCESS';
17 else if (/^file:\/\/\/[C-Z]:\/test$/.test(path
)) // MS Windows.
18 document
.getElementById('result').innerHTML
= 'SUCCESS';
22 <body onload=
"runTest()">
23 This tests that paths in documents created using document.implementation.createHTMLDocument are returned correctly.
24 <div id=
"result">FAILURE
</div>