gecko-dev/layout/base/tests/bug1132768-1-ref.html

13 строки
242 B
HTML

<!DOCTYPE html>
<html>
<script>
function test() {
focus();
getSelection().selectAllChildren(document.querySelector("span"));
}
</script>
<body onload="test()">
<div>foo<span>bar</span>baz</div>
</body>
</html>