2 <html xmlns=
"http://www.w3.org/1999/xhtml">
6 <title>Test for XHTML serializer + innerHtml, bug
545644</title>
7 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
11 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=545644">Mozilla Bug
</a>
15 <script class=
"testbody" type=
"text/javascript">
17 function testInner () {
18 var div = document.getElementById(
"test_inner");
21 div.innerHTML =
"some \u00A0 &nbsp; text";
22 ok(false,
"innerHTML in xhtml test failed, no exception by the parser when giving an unexpected entity"+e);
24 ok (true,
"innerHTML in xhtml test ok");
28 div.innerHTML =
"some \u00A0 text";
30 ok (true,
"innerHTML in xhtml test ok");
32 ok(false,
"innerHTML in xhtml test failed, unexpected exception "+e);
39 SimpleTest.waitForExplicitFinish();
41 addLoadEvent(testInner);
45 <div id=
"test_inner"></div>