Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <head> |
michael@0 | 4 | <script> |
michael@0 | 5 | function doit() { |
michael@0 | 6 | var newNode = document.createElement("span"); |
michael@0 | 7 | newNode.appendChild(document.createTextNode("Nine")); |
michael@0 | 8 | document.getElementById("target").appendChild(newNode); |
michael@0 | 9 | } |
michael@0 | 10 | </script> |
michael@0 | 11 | <style> |
michael@0 | 12 | body > span { border: 3px solid blue } |
michael@0 | 13 | </style> |
michael@0 | 14 | </head> |
michael@0 | 15 | <body onload='doit()'> |
michael@0 | 16 | <span id="target" |
michael@0 | 17 | style="-moz-binding: url(insert-into-split-inline-force-ContentInserted.xml#test);" |
michael@0 | 18 | ><span>One</span |
michael@0 | 19 | ><span>Two</span |
michael@0 | 20 | ><span>Three</span |
michael@0 | 21 | ><div>Four</div |
michael@0 | 22 | ><div>Five</div |
michael@0 | 23 | ><span>Six</span |
michael@0 | 24 | ><div>Seven</div |
michael@0 | 25 | ><div>Eight</div |
michael@0 | 26 | ></span> |
michael@0 | 27 | </body> |
michael@0 | 28 | </html> |