blob: a393da64c540fa2a5aa7a588f9e0493daad22e5d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
Here is a text node you can't select.
<dialog>I'm selectable.</dialog>
<script>
description('Test that inert nodes cannot be selected. The test passes if the only text you can select is inside the dialog.');
dialog = document.querySelector('dialog');
dialog.showModal();
document.execCommand('SelectAll');
shouldBeEqualToString('window.getSelection().toString()', "I'm selectable.");
</script>
</body>
</html>