| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 Test passes if it does not crash. | 3 Test passes if it does not crash. |
| 4 <script> | 4 <script> |
| 5 if (window.layoutTestController) | 5 if (window.layoutTestController) |
| 6 layoutTestController.dumpAsText(); | 6 layoutTestController.dumpAsText(); |
| 7 | 7 |
| 8 function runTest() { | 8 function runTest() { |
| 9 svgdoc = document.getElementById('root').contentDocument; | 9 svgdoc = document.getElementById('root').contentDocument; |
| 10 var style = document.createElement('style'); | 10 var style = document.createElement('style'); |
| 11 var test1 = svgdoc.getElementById('test1'); | 11 var test1 = svgdoc.getElementById('test1'); |
| 12 test1.appendChild(style); | 12 test1.appendChild(style); |
| 13 svgdoc.getElementById('test2').setAttribute('xlink:href', 0); | 13 svgdoc.getElementById('test2').setAttribute('xlink:href', 0); |
| 14 svgdoc.getElementById('test').setAttribute('stroke', 0); | 14 svgdoc.getElementById('test').setAttribute('stroke', 0); |
| 15 } | 15 } |
| 16 </script> | 16 </script> |
| 17 <object data="resources/stylesheet-candidate-node-crash.svg" id="root" onload="r
unTest();" type="image/svg+xml"></object> | 17 <object data="resources/stylesheet-candidate-node-crash.svg" id="root" onload="r
unTest();" type="image/svg+xml"></object> |
| 18 </html> | 18 </html> |
| 19 | 19 |
| OLD | NEW |