Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML" class="reftest-wait">
2 <head>
3 <script>
5 function boom()
6 {
7 var mi = document.getElementById("mi");
8 var textA = mi.firstChild;
9 var textB = document.createTextNode("b");
10 var textSpace = document.createTextNode(" ");
12 var floater = document.getElementById("floater");
14 mi.appendChild(textB);
15 mi.appendChild(textSpace);
16 mi.removeChild(textA);
17 mi.removeChild(textSpace);
19 floater.parentNode.removeChild(floater);
21 document.documentElement.removeAttribute("class");
22 }
24 </script>
25 </head>
27 <body onload="setTimeout(boom, 30);">
29 <math:mi id="mi">a<p><span style="float: right;" id="floater" /></p></math:mi>
31 </body>
33 </html>