blob: f7f587549437fd3e9542566124a7d987268a663d [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("dt1").insertBefore(createNewElement("summary", "new1", "new 1"), document.getElementById("summary1"));
};
</script>
<body onload="runTests()">
<details id="dt1">
<summary id="summary1">summary</summary>
</details>
</body>