mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
When inserting a new utf-16 surrogate next to an existing surrogate with replaceData, the surrogates would not get merged correctly into a single code point. This is because internally the text data is stored as utf-8, and the two surrogates would be converted seperately. This has now been fixed by first recreating the whole string in utf-16 and then converting it back to utf-8. It's not the most efficient solution, but this fixes at least 6 WPT subtests.
8.4 KiB
8.4 KiB