LibWeb: Allow splitting surrogate pairs in CharacterData.replaceData()

We're expected to handle this situation gracefully, and certainly not
by falling apart like we were.

Found by Domato.
This commit is contained in:
Andreas Kling 2024-07-19 20:02:14 +02:00 committed by Andreas Kling
commit 33207174a9
Notes: github-actions[bot] 2024-07-20 04:41:59 +00:00
3 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,5 @@
Before replaceData:
[0]: 53997
[1]: 56998
After replaceData:
[0]: 56998