blob: d31ad98216edf6187f1fa9110fbb085927ba9157 [file] [log] [blame]
<script>
var createNewElement = function (tag, id, text) {
var result = document.createElement(tag);
result.setAttribute('id',id);
result.innerHTML = text;
return result;
};
var runTests = function () {
document.getElementById("detail").appendChild(createNewElement("b", "toadd", "should have bold test"));
};
</script>
<body onload="runTests()">
<details id="detail" open>
<summary id="summary">summary </summary>
</details>
</body>