dbates@webkit.org | ebddf38 | 2014-05-16 04:30:12 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <script> |
| 5 | if (window.testRunner) |
| 6 | testRunner.dumpAsText(); |
| 7 | </script> |
| 8 | </head> |
| 9 | <body> |
| 10 | <p>This tests that we don't cause an assertion failure when implicitly removing a <use> (by removing its parent), with the same id as another element, that is referenced by a later <animate>.</p> |
| 11 | <svg> |
| 12 | <use id="A"></use> |
| 13 | <use id="A"></use> |
| 14 | <animate xlink:href="#A"></animate> |
| 15 | </svg> |
| 16 | <script> |
| 17 | var svg = document.querySelector("svg"); |
| 18 | document.body.removeChild(svg); |
| 19 | </script> |
| 20 | <p>PASS</p> |
| 21 | </body> |
| 22 | </html> |