haikuwebkit/LayoutTests/fast/parser/parent-of-script-before-hea...

11 lines
238 B
HTML

<!doctype html>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (document.getElementsByTagName("script")[0].parentNode.tagName.toUpperCase() == "HEAD")
document.write("PASS")
else
document.write("FAIL")
</script>