Index: LayoutTests/svg/custom/use-target-removed.svg |
diff --git a/LayoutTests/svg/custom/use-target-removed.svg b/LayoutTests/svg/custom/use-target-removed.svg |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07c7d4a37ab83934d85ca6615f2986823dd9d700 |
--- /dev/null |
+++ b/LayoutTests/svg/custom/use-target-removed.svg |
@@ -0,0 +1,15 @@ |
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
+ <symbol id="a"/> |
+ <use id="b" xlink:href="#a"/> |
+ <script> |
+ if (window.testRunner) |
+ testRunner.dumpAsText(); |
+ b = document.getElementById('b'); |
+ b.href.baseVal = "#a"; |
+ onload = function() { |
+ document.getElementById("a").remove(); |
+ b.setAttribute("width", 100); |
+ }; |
+ </script> |
+ <text y="20">PASS: The text is displayed and the file did not trigger a crash.</text> |
+</svg> |