blob: bd31ed5d92a1c5e5a4f6adc22c521b11b19dbc1d [file] [log] [blame]
<html>
<head>
<script>
function runTest() {
if (window.layoutTestController)
layoutTestController.dumpAsText();
var htmlDoc = document.implementation.createHTMLDocument('');
htmlDoc.open();
htmlDoc.write('<html><img id="theImage" src="/test"></html>');
if (htmlDoc.getElementById('theImage').src == 'file:///test')
document.getElementById('result').innerHTML = 'SUCCESS';
}
</script>
</head>
<body onload="runTest()">
This tests that paths in documents created using document.implementation.createHTMLDocument are returned correctly.
<div id="result">FAILURE</div>
</body>
</html>