blob: de2113d78c47bc6cf42717cbddd7c5d0e1b45e70 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests selecting content starting in a shadow tree out to an editable element.<br>
To manually test, select "hello world" below by a mouse drag from "h" to "d". WebKit should only select "hello".</p>
<div id="container" contenteditable>hello <div>world</div></div>
<script>
container.focus();
getSelection().setBaseAndExtent(container, 0, container, 1);
</script>
</body>
</html>