parser/htmlparser/tests/mochitest/test_bug563322.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/parser/htmlparser/tests/mochitest/test_bug563322.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.5 +<!--
     1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=563322
     1.7 +-->
     1.8 +<head>
     1.9 +  <title>Test for Bug 563322</title>
    1.10 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.11 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.12 +</head>
    1.13 +<body>
    1.14 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=563322">Mozilla Bug 563322</a>
    1.15 +<p id="display"></p>
    1.16 +<div id="content" style="display: none">
    1.17 +  
    1.18 +</div>
    1.19 +<pre id="test">
    1.20 +<script type="application/javascript">
    1.21 +<![CDATA[
    1.22 +
    1.23 +/** Test for Bug 563322 **/
    1.24 +
    1.25 +var div = document.createElementNS("http://www.w3.org/1999/xhtml", "div");
    1.26 +div.innerHTML = "<script>ok(false, 'Script ran but should not have')</script><script>ok(false, 'Script ran but should not have')</script>"
    1.27 +
    1.28 +document.getElementById("content").appendChild(div);
    1.29 +
    1.30 +ok(true, "Keep the harness happy");
    1.31 +
    1.32 +]]>
    1.33 +</script>
    1.34 +</pre>
    1.35 +</body>
    1.36 +</html>

mercurial