<html> | |
<head> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
function normalizeURL(url) { | |
return url.substring(url.lastIndexOf('LayoutTests')); | |
} | |
</script> | |
<base href="http://fail.example.com/"> | |
</head> | |
<body> | |
<div>The document.documentURI property should not be affected by the <base> tag.</div> | |
<script>document.write(normalizeURL(document.documentURI));</script> | |
</body> | |
</html> |