Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<style>
div#a { margin: 100px 0px 100px 0px; }
</style>
<script>
function boom()
{
var a = document.getElementById("a");
a.firstChild.remove();
document.documentElement.className = "";
}
</script>
</head>
<body onload="boom();">
<div id="a">a</div>
<div>b</div>
</body>
</html>