<!DOCTYPE html>
<html>
<body>
<p>This tests selecting content starting in an editable region in a shadow tree to an editable region in the document tree.<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"><div contenteditable>hello</div> world</div>
<script>
container.focus();
getSelection().selectAllChildren(container.firstChild);
</script>
</body>
</html>
