1 <svg xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink">
3 <text id=
"text1" font-size=
"20" fill=
"yellow">PASS
</text>
6 <!-- Don't crash when setting the href attribute while a filter resource is pending. -->
7 <use id=
"crasher" xlink:
href=
"foo" filter=
"url(#nosuchfilter)"/>
9 <!-- Test both updating the href attribute and picking up the pending filter. -->
10 <use id=
"text_use" y=
"20" xlink:
href=
"#foo" filter=
"url(#filter2)"/>
14 <feColorMatrix type=
"matrix" values=
"0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0"/>
18 <!-- Should not crash. -->
19 document.getElementById(
"crasher").setAttribute(
"xlink:href",
"bar");
21 <!-- Should yield the filtered text -->
22 document.getElementById(
"text_use").setAttribute(
"xlink:href",
"#text1");
24 if (window.testRunner)
25 testRunner.dumpAsText();