Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script> |
michael@0 | 4 | function doTest() { |
michael@0 | 5 | var d = document.createElement("div"); |
michael@0 | 6 | d.textContent = "This is a test"; |
michael@0 | 7 | var l = document.getElementById("l"); |
michael@0 | 8 | l.textContent = "before"; |
michael@0 | 9 | l.appendChild(d); |
michael@0 | 10 | l.appendChild(document.createTextNode("after")); |
michael@0 | 11 | } |
michael@0 | 12 | </script> |
michael@0 | 13 | </head> |
michael@0 | 14 | <body onload="doTest()"> |
michael@0 | 15 | <fieldset> |
michael@0 | 16 | <legend style="border: 2px solid green">This is a test</legend> |
michael@0 | 17 | First fieldset |
michael@0 | 18 | </fieldset> |
michael@0 | 19 | <fieldset> |
michael@0 | 20 | <legend id="l" style="border: 2px solid green"></legend> |
michael@0 | 21 | First fieldset |
michael@0 | 22 | </fieldset> |
michael@0 | 23 | </body> |