blob: 4820e2eb468da017f92c1f2335b480987ff81dc7 [file] [log] [blame]
<!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>