mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 16:46:26 +00:00
37e5af5fac
--HG-- rename : content/svg/content/test/test_getSubStringLength.xhtml => content/svg/content/test/test_selectSubString.xhtml rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-2-ref.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-2.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-3-ref.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-3.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString-ref.svg rename : layout/reftests/svg/text/simple-selection.svg => layout/reftests/svg/text/selectSubString.svg
17 lines
529 B
XML
17 lines
529 B
XML
<!--
|
|
Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/
|
|
-->
|
|
<svg xmlns="http://www.w3.org/2000/svg" width="700" height="200">
|
|
<g transform="translate(100,100)" style="font: 16px sans-serif">
|
|
<text>hello</text>
|
|
</g>
|
|
<script>
|
|
var text = document.getElementsByTagName("text")[0];
|
|
var range = document.createRange();
|
|
range.setStart(text.firstChild, 1);
|
|
range.setEnd(text.firstChild, 4);
|
|
window.getSelection().addRange(range);
|
|
</script>
|
|
</svg>
|