haikuwebkit/LayoutTests/fast/dynamic/selection-gets-cleared-when...

14 lines
345 B
HTML

<!DOCTYPE html>
<head>
<title>This tests that selection stays on when part of the selection gets removed.</title>
</head>
<body>
This should still be selected.
<script>
var range = document.createRange();
range.selectNode(document.body);
window.getSelection().addRange(range);
</script>
</body>
</html>