summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/parser/stray-param.html
blob: 0b968d853b414b476ed1a6c913b277b4ce5c328f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html>
    <head>
        <title>Stray param elements are not dropped when parsing</title>
        <script>
            if (window.testRunner)
                testRunner.dumpAsText();

            window.onload = function() {
                var len = document.getElementsByTagName("param").length;
                document.getElementsByTagName("p")[0].innerHTML = (len == 1) ? "PASS" : "FAIL";
            };
        </script>
    </head>
    <body>
        <p>This test requires Javascript.</p>
        <param>
    </body>
</html>