4 https://bugzilla.mozilla.org/show_bug.cgi?id=358797
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" />
13 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=358797">Mozilla Bug
358797</a>
15 <div id=
"content" style=
"display: none">
19 <script class=
"testbody" type=
"text/javascript">
21 /** Test for Bug
358797 **/
26 range = document.createRange();
27 range.selectNode(document.firstChild);
28 range.createContextualFragment('
<span></span>');
33 ok(isOK,
"range.createContextualFragment() should throw when range node is " +