Commit Graph

2 Commits

Author SHA1 Message Date
Jelle Raaijmakers
d4c2b69c8b LibWeb: Avoid void elements when inserting text
This seems to be a spec issue for the `insertText` editing command.
Other browsers behave as if the cursor is put just before the void
element, so we copy that. For inline void elements, we find the first
equivalent point which effectively traverses into the preceding inline
node.
2026-01-13 10:07:56 +01:00
Jelle Raaijmakers
34615917d7 Tests: Import WPT test insert-text-in-void-element.tentative.html 2026-01-13 10:07:56 +01:00