<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<path id="visiblePath" d="M150 50 L 450 50" />
<text x="50" y="50">PASS</text>
<text>
<textPath id="failText" xlink:href="#visiblePath">FAIL</textPath>
</text>
<script><![CDATA[
var failText = document.getElementById("failText");
failText.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#notVisiblePath");
]]></script>
</svg>