mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 22:55:23 +00:00
21 lines
496 B
XML
21 lines
496 B
XML
|
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" onload="boom();">
|
||
|
|
||
|
<script>
|
||
|
|
||
|
function boom()
|
||
|
{
|
||
|
var SVG_NS = "http://www.w3.org/2000/svg";
|
||
|
|
||
|
var svgCircle = document.createElementNS(SVG_NS, 'circle');
|
||
|
var svgText = document.createElementNS(SVG_NS, 'text');
|
||
|
svgText.appendChild(document.createTextNode("foo"));
|
||
|
svgCircle.appendChild(svgText);
|
||
|
|
||
|
document.removeChild(document.documentElement);
|
||
|
document.appendChild(svgCircle);
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
</svg>
|