summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/parser/self-closing-foreign-content.html
blob: 02b5cb8abcccc9c1a494f2be0237004b7d916497 (plain)
1
2
3
4
5
6
7
8
9
10
11
<script>
    if (window.testRunner)
        testRunner.dumpAsText();
        
    function test()
    {
        document.body.innerHTML += "<svg /><mathml /><br>PASS";
    }
</script>
<body onload="test()">
Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=55955">https://bugs.webkit.org/show_bug.cgi?id=55955</a>. Verify that WebKit does not ASSERT when a self-closing svg or mathml root element is followed by non-foreign HTML content. In the fragment case, this ASSERT indicated that the parser's insertion mode was incorrectly in InForeignContentMode even though the svg or mathml root element was self-closing and not placed on the open elements stack.