2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 https://bugzilla.mozilla.org/show_bug.cgi?id=444030
7 <title>Test for Bug
444030</title>
8 <script type=
"text/javascript" src=
"/MochiKit/packed.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 <bindings xmlns=
"http://www.mozilla.org/xbl">
18 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=444030">Mozilla Bug
444030</a>
20 <div id=
"content" style=
"display: none">
24 <script class=
"testbody" type=
"text/javascript">
27 /** Test for Bug
444030 **/
30 var anonTextNode = document.getAnonymousNodes(document.getElementById(
"boundElement"))[
0];
31 var hadException = false;
33 var wholeText = anonTextNode.wholeText;
38 "Should have got an exception when using .wholeText with a text node child of the binding parent");
42 anonTextNode.replaceWholeText(
"foobar");
47 "Should have got an exception when using .replaceWholeText with a text node child of the binding parent");
51 SimpleTest.waitForExplicitFinish();
57 <div style=
"-moz-binding: url(#e)" id=
"boundElement"></div>