LibWeb: Disallow Editing API calls on non-HTML documents

This is not directly mentioned in the Editing API spec, but all major
browsers do this and there is a WPT for this behavior.
This commit is contained in:
Tim Ledbetter 2025-01-21 10:13:14 +00:00 committed by Jelle Raaijmakers
commit a0b0e91d4f
Notes: github-actions[bot] 2025-01-21 18:09:45 +00:00
8 changed files with 89 additions and 31 deletions

View file

@ -2,6 +2,6 @@ No range.
DIV 0 - DIV 0
BODY 0 - BODY 5
true
false
queryCommandEnabled threw exception of type: InvalidStateError
false
Did not crash!