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 var toremove
= document
.getElementById("toremove");
11 toremove
.parentNode
.removeChild(toremove
);
15 <body onload=
"runTests()">
17 <summary>summary
<b id=
"toremove">to be removed
</b> shouldn't have only bold text.
</summary>