Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<head>
<script>
function boom()
{
document.getElementById("foo").appendChild(document.getElementById("bar"));
}
window.addEventListener("load", boom, false);
</script>
</head>
<body>
<div id="foo"></div>
<defs>
<linearGradient id="grad1"/>
</defs>
<rect id="bar" style="fill:url(#grad1);" />
</svg>
</body>
</html>