LibWeb: Require existing Selection for .execCommand("selectAll")

Disable the command if no selection is available. This is a spec bug:

https://github.com/w3c/editing/issues/475

Fixes #3325
This commit is contained in:
Jelle Raaijmakers 2025-01-20 23:56:55 +01:00 committed by Tim Ledbetter
commit d967f56936
Notes: github-actions[bot] 2025-01-21 02:28:49 +00:00
3 changed files with 21 additions and 5 deletions

View file

@ -1,3 +1,7 @@
No range.
DIV 0 - DIV 0
BODY 0 - BODY 5
true
false
false
Did not crash!