<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="r" class="reftest-wait">
<text id="t"><textPath xlink:href="#r">x</textPath>1</text>
<script>

window.addEventListener("load", function() {
    setTimeout(function() {
        document.getElementById("t").lastChild.data = "2";

        document.documentElement.removeAttribute("class");
    }, 200);
}, false);

</script>
</svg>