<!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>
