luiz@webkit.org | fb0b8be | 2011-03-14 17:35:17 +0000 | [diff] [blame] | 1 | <script> |
2 | |||||
3 | var createNewElement = function (tag, id, text) { | ||||
4 | var result = document.createElement(tag); | ||||
5 | result.setAttribute('id',id); | ||||
6 | result.innerHTML = text; | ||||
7 | return result; | ||||
8 | }; | ||||
9 | |||||
10 | var runTests = function () { | ||||
11 | document.getElementById("dt1").appendChild(createNewElement("summary", "new1", "new 1")); | ||||
12 | }; | ||||
13 | |||||
14 | </script> | ||||
15 | |||||
16 | <body onload="runTests()"> | ||||
17 | <details open id="dt1"></details> | ||||
18 | </body> |