<!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> |