Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <svg xmlns="http://www.w3.org/2000/svg"
2 xmlns:html="http://www.w3.org/1999/xhtml"
3 class="reftest-wait"
4 onload="setTimeout(doStuff, 30);">
6 <html:script style="display: none;" type="text/javascript">
8 function doStuff()
9 {
10 var svg = document.documentElement;
11 var ellipse = document.getElementById("ellipse");
12 var filter = document.getElementById("filter");
14 document.addEventListener("DOMNodeRemoved", foopy, false);
15 filter.removeChild(filter.firstChild);
16 document.removeEventListener("DOMNodeRemoved", foopy, false);
18 function foopy()
19 {
20 document.removeEventListener("DOMNodeRemoved", foopy, false);
21 svg.appendChild(filter);
22 }
24 // Needed for the crash, but not for the assertion.
25 svg.appendChild(ellipse);
27 document.documentElement.removeAttribute("class");
28 }
30 </html:script>
32 <ellipse id="ellipse" cx="200" cy="150" rx="70" ry="40" style="filter: url(#filter);"/>
34 <filter id="filter"> </filter>
36 </svg>