2 var createNewElement = function (tag
, id
, text
) {
3 var result
= document
.createElement(tag
);
4 result
.setAttribute('id',id
);
5 result
.innerHTML
= text
;
9 var runTests = function () {
10 document
.getElementById("detail").removeChild(document
.getElementById("toremove"));
14 <body onload=
"runTests()">
15 <details id=
"detail" open
>
16 <b id=
"toremove">this should be removed
</b>
17 <summary id=
"summary">summary
</summary>
18 should have no bold test.