| <?xml version="1.0"?> |
| <svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"> |
| <script> |
| function init() |
| { |
| var script = document.createElementNS("http://www.w3.org/2000/svg", "script"); |
| script.setAttributeNS('http://www.w3.org/1999/xlink', 'href', "does-not-exist.js"); |
| |
| script.onerror = function() { window.top.done(); }; |
| document.documentElement.appendChild(script); |
| var contextDoc = window.top.document.implementation.createDocument("", null); |
| contextDoc.adoptNode(document.documentElement); |
| } |
| init(); |
| </script> |
| </svg> |