haikuwebkit/LayoutTests/fast/dom/documenturi-loses-to-base-t...

20 lines
361 B
HTML

<html>
<head>
<base href="http://pass.example.com/">
<body>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.documentURI = 'http://fail.example.com/';
</script>
<a href="foo.html">Hyperlink to foo.html</a>
<pre>
<script>
var a = document.getElementsByTagName('a')[0];
document.writeln('a.href = ' + a.href);
</script>
</pre>
</body>
</html>