mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-11-19 02:13:04 +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>
|