| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 var createNewElement = function (tag, id, text) { | 2 var createNewElement = function (tag, id, text) { |
| 3 var result = document.createElement(tag); | 3 var result = document.createElement(tag); |
| 4 result.setAttribute('id',id); | 4 result.setAttribute('id',id); |
| 5 result.innerHTML = text; | 5 result.innerHTML = text; |
| 6 return result; | 6 return result; |
| 7 }; | 7 }; |
| 8 | 8 |
| 9 var runTests = function () { | 9 var runTests = function () { |
| 10 document.getElementById("detail").removeChild(document.getElementById("torem
ove")); | 10 document.getElementById("detail").removeChild(document.getElementById("torem
ove")); |
| 11 }; | 11 }; |
| 12 </script> | 12 </script> |
| 13 | 13 |
| 14 <body onload="runTests()"> | 14 <body onload="runTests()"> |
| 15 <details id="detail" open> | 15 <details id="detail" open> |
| 16 <b id="toremove">this should be removed</b> | 16 <b id="toremove">this should be removed</b> |
| 17 <summary id="summary">summary </summary> | 17 <summary id="summary">summary </summary> |
| 18 should have no bold test. | 18 should have no bold test. |
| 19 </details> | 19 </details> |
| 20 </body> | 20 </body> |
| OLD | NEW |