OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body onload="crash()"> | 3 <body onload="crash()"> |
4 <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=94487 --> | 4 <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=94487 --> |
5 <input/> | 5 <input/> |
6 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xl
ink"> | 6 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xl
ink"> |
7 <g> | 7 <g> |
8 <tref xlink:href="#target"/> | 8 <tref xlink:href="#target"/> |
9 <g id="target"></g> | 9 <g id="target"></g> |
10 </g> | 10 </g> |
11 </svg> | 11 </svg> |
12 <input/> | 12 <input/> |
13 <div>PASS: did not crash.</div> | 13 <div>PASS: did not crash.</div> |
14 | 14 |
15 <script> | 15 <script> |
16 if (window.testRunner) | 16 if (window.testRunner) |
17 testRunner.dumpAsText(); | 17 testRunner.dumpAsText(); |
18 | 18 |
19 function crash() { | 19 function crash() { |
20 document.designMode='on'; | 20 document.designMode='on'; |
21 document.execCommand('selectall'); | 21 document.execCommand('selectall'); |
22 document.execCommand('FormatBlock', false, '<'+'pre>'); | 22 document.execCommand('FormatBlock', false, '<'+'pre>'); |
23 } | 23 } |
24 </script> | 24 </script> |
25 </body> | 25 </body> |
26 </html> | 26 </html> |
OLD | NEW |