summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/parser/pop-all-after-after-body.html
blob: 4820e2eb468da017f92c1f2335b480987ff81dc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!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>