haikuwebkit/LayoutTests/fast/parser/pop-all-after-after-body.html

21 lines
609 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>last-child test</title>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.onload = function() {
// Notice that this file lacks a terminating newline character!
// That's essential to what this test is testing!
if (document.querySelectorAll('body>:last-child').length == 1) {
alert('PASS');
} else {
alert('FAIL');
}
}
</script>
</head>
<body><div id='last'>last</div></body></html>