1 <?xml version="1.0" encoding="UTF-8"?> 2 <svg xmlns:svg="http://www.w3.org/2000/svg" 3 xmlns="http://www.w3.org/2000/svg" 4 xmlns:xlink="http://www.w3.org/1999/xlink" 5 width="800px" height="800px" 6 onload="init()"> 7 8 <script type="application/ecmascript"> 9 if (window.layoutTestController) 10 layoutTestController.dumpAsText(); 11 12 function init() { 13 var cell = document.getElementById('foo'); 14 cell.setAttributeNS(null, 'visibility','display'); 15 16 } 17 </script> 18 <use id="foo" xlink:href="#doesNotExist"/> 19 <text x="10" y="10" > PASS -- not crashing, https://bugs.webkit.org/show_bug.cgi?id=27693 </text> 20 </svg> 21