402400-1.xhtml (1153B)
1 <html xmlns="http://www.w3.org/1999/xhtml"> 2 <head> 3 <script type="text/javascript"> 4 5 function boom() 6 { 7 var textB = document.createTextNode("b"); 8 var textC = document.createTextNode("c"); 9 var textN = document.createTextNode("n"); 10 var textP = document.createTextNode("p"); 11 12 var blv = document.createElementNS("http://www.w3.org/1999/xhtml", "div"); 13 var odj = document.createElementNS("http://www.w3.org/1999/xhtml", "div"); 14 var tr = document.createElementNS("http://www.w3.org/1999/xhtml", "tr"); 15 var td = document.createElementNS("http://www.w3.org/1999/xhtml", "td"); 16 var mathMO = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mo"); 17 18 td.appendChild(textB); 19 document.body.appendChild(blv); 20 blv.appendChild(tr); 21 blv.appendChild(mathMO); 22 mathMO.appendChild(textP); 23 odj.appendChild(td); 24 odj.appendChild(textN); 25 26 blv.removeChild(tr); 27 mathMO.appendChild(odj); 28 td.removeChild(textB); 29 blv.appendChild(textC); 30 document.body.appendChild(odj); 31 odj.insertBefore(mathMO, textN); 32 document.body.appendChild(mathMO); 33 mathMO.appendChild(odj); 34 } 35 36 </script> 37 </head> 38 39 <body onload="boom();"></body> 40 41 </html>