blob: 8bbbe227b3f532f5fb4ea16e2638fe7ce6ccc00d [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 () {details
var details = document.getElementById("detail");
details.insertBefore(createNewElement("b", "toadd", "should have bold test"), details.firstChild);
};
</script>
<body onload="runTests()">
<details id="detail" open>
<summary id="summary">summary </summary>
</details>
</body>