Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<html>
<head>
<script>
function boo()
{
var div = document.getElementById("div");
var dd = document.getElementById("dd");
var newSpan = document.createElement('span');
dd.insertBefore(newSpan, div);
}
window.addEventListener("load", boo);
</script>
</head>
<body>
<dd id="dd"><div id="div"></div></dd>
</body>
</html>