mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
16 lines
338 B
XML
16 lines
338 B
XML
<svg xmlns="http://www.w3.org/2000/svg">
|
|
<script>
|
|
|
|
function boom()
|
|
{
|
|
var svgText = document.getElementById("t");
|
|
svgText.firstChild.data = "C";
|
|
svgText.appendChild(document.createTextNode("D"));
|
|
document.caretPositionFromPoint(0, 0);
|
|
}
|
|
window.addEventListener("load", boom, false);
|
|
|
|
</script>
|
|
<text id="t">A</text>
|
|
</svg>
|