| Index: LayoutTests/svg/custom/use-href-attr-removal-crash.html
|
| diff --git a/LayoutTests/svg/custom/use-href-attr-removal-crash.html b/LayoutTests/svg/custom/use-href-attr-removal-crash.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8004f499f80eabb5bfbed23d7f3cf237cd9cb8e6
|
| --- /dev/null
|
| +++ b/LayoutTests/svg/custom/use-href-attr-removal-crash.html
|
| @@ -0,0 +1,19 @@
|
| +<!DOCTYPE html>
|
| +<p>PASS if no crash.</p>
|
| +<svg>
|
| + <symbol id="a"><rect width="100" height="100" fill="blue"/></symbol>
|
| + <use id="b" xlink:href="#a"></use>
|
| + <rect id="c" width="100" height="100" fill="red"/>
|
| +</svg>
|
| +<script>
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +onload = function() {
|
| + var use = document.getElementById('b');
|
| + use.removeAttribute("xlink:href");
|
| + var symbol = document.getElementById("a");
|
| + symbol.appendChild(document.getElementById("c"));
|
| + use.setAttribute("height", "100");
|
| +}
|
| +</script>
|
|
|