b=450088 backing out (new reftest failed)
[wine-gecko.git] / testing / mochitest / tests / test_bug358797.html
blob639e18c925a4048511d4d588534f02b5abf3c6f7
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=358797
5 -->
6 <head>
7 <title>Test for Bug 358797</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=358797">Mozilla Bug 358797</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 358797 **/
23 var isOK = false;
24 try {
25 var range;
26 range = document.createRange();
27 range.selectNode(document.firstChild);
28 range.createContextualFragment('<span></span>');
30 catch (ex) {
31 isOK = true;
33 ok(isOK, "range.createContextualFragment() should throw when range node is " +
34 "DocType");
36 </script>
37 </pre>
38 </body>
39 </html>