LibWeb: Align editing whitespace canonicalization with other browsers

The spec calls for a couple of very specific whitespace padding
techniques whenever we canonicalize whitespace during the execution of
editing commands, but it seems that other browsers have a simpler
strategy - let's adopt theirs!
This commit is contained in:
Jelle Raaijmakers 2025-04-29 13:20:15 +02:00 committed by Andreas Kling
commit 6176b05ca5
Notes: github-actions[bot] 2025-04-29 13:33:03 +00:00
3 changed files with 81 additions and 48 deletions

View file

@ -1,2 +1,21 @@
--- a ---
Before: foobar
After: fooar
--- b ---
Before: a   
After: a  
--- c ---
Before: a  b
After: a b
--- d ---
Before: a   b
After: a  b
--- e ---
Before: a    b
After: a   b
--- f ---
Before: a     b
After: a    b
--- g ---
Before:   b
After:  b