OLD | NEW |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runTest()"> | 1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> |
2 <path id="thePath" d="M150 50 L 450 50" /> | 2 <path id="visiblePath" d="M150 50 L 450 50" /> |
3 <text x="50" y="50">PASS</text> | 3 <text x="50" y="50">PASS</text> |
4 <text> | 4 <text> |
5 <textPath id="theTP" xlink:href="#thePath">FAIL</textPath> | 5 <textPath id="failText" xlink:href="#visiblePath">FAIL</textPath> |
6 </text> | 6 </text> |
7 <script><![CDATA[ | 7 <script><![CDATA[ |
8 function runTest() { | 8 var failText = document.getElementById("failText"); |
9 var tp = document.getElementById("theTP"); | 9 failText.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#notVisible
Path"); |
10 tp.setAttributeNS("http://www.w3.org/1999/xlink","href","#wrongPath"); | |
11 } | |
12 ]]></script> | 10 ]]></script> |
13 </svg> | 11 </svg> |
OLD | NEW |