| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=88547 --> | 4 <!-- Test for https://bugs.webkit.org/show_bug.cgi?id=88547 --> |
| 5 <svg xmlns="http://www.w3.org/2000/svg"> | 5 <svg xmlns="http://www.w3.org/2000/svg"> |
| 6 <foreignObject> | 6 <foreignObject> |
| 7 <div id="div" style="position:fixed; height:50%; counter-increment:inherit;"
>Passes if replacing this text doesn't cause a crash.</div> | 7 <div id="div" style="position:fixed; height:50%; counter-increment:inherit;"
>Passes if replacing this text doesn't cause a crash.</div> |
| 8 </foreignObject> | 8 </foreignObject> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| 11 window.onload=function() { | 11 window.onload=function() { |
| 12 document.designMode="on"; | 12 document.designMode="on"; |
| 13 document.execCommand("SelectAll"); | 13 document.execCommand("SelectAll"); |
| 14 document.getElementById('div').innerHTML = "PASS"; | 14 document.getElementById('div').innerHTML = "PASS"; |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 if (window.layoutTestController) | 17 if (window.layoutTestController) |
| 18 layoutTestController.dumpAsText(); | 18 layoutTestController.dumpAsText(); |
| 19 </script> | 19 </script> |
| 20 </svg> | 20 </svg> |
| 21 </body> | 21 </body> |
| 22 </html> | 22 </html> |
| OLD | NEW |