<svg xmlns="http://www.w3.org/2000/svg"> <style> * { border-top-style: inset } </style> <script> window.onclick=function() { getSelection().setBaseAndExtent(document,5,document,5); getSelection().deleteFromDocument(); getSelection().modify('extend','backward','line'); } </script> <text y="50" fill="green" font-size="20">Test passes if no crash on mouse click. Text may be highlighted.</text> <text> 1 </text> </svg>