test_bug883708.xhtml (965B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 4 5 <script> 6 7 function boom() { 8 var newSpan = document.createElementNS("http://www.w3.org/1999/xhtml", "span"); 9 document.getElementById("c").insertBefore(newSpan, document.getElementById("d")); 10 document.getElementById("a").style.visibility = "visible"; 11 ok(true, "test didn't crash or assert"); 12 SimpleTest.finish(); 13 } 14 15 </script> 16 </head> 17 18 <body onload="boom();"> 19 <a target="_blank" 20 title="test reparenting accessible subtree when inaccessible element becomes accessible" 21 href="https://bugzilla.mozilla.org/show_bug.cgi?id=883708"> 22 Mozilla Bug 883708 23 </a> 24 25 <p id="display"></p> 26 <div id="content" style="display: none"></div> 27 <pre id="test"> 28 </pre> 29 30 <div style="visibility: collapse;" id="a"><div style="float: right; visibility: visible;"><div id="c"><td id="d"></td></div></div></div></body> 31 </html>