4 https://bugzilla.mozilla.org/show_bug.cgi?id=358660
7 <title>Test for Bug
358660</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=358660">Mozilla Bug
358660</a>
14 <div id=
"content" style=
"display: none">
15 <iframe id=
"testframe"
16 srcdoc=
"<html><body>Some text</body></html>"></iframe>
19 <script class=
"testbody" type=
"text/javascript">
21 /** Test for Bug
358660 **/
22 SimpleTest.waitForExplicitFinish();
24 window.onload = function() {
25 var doc = $(
"testframe").contentDocument;
26 var range = doc.createRange();
27 range.selectNode(doc.documentElement);
28 is(range.toString(),
"Some text",
"Check text");