LibWeb: Sort URLSearchParams using UTF-16 code units

We were previously sorting using code points which could give the wrong
result for certain inputs.

Fixes the last two failing tests on:

https://wpt.live/url/urlsearchparams-sort.any.html
This commit is contained in:
Shannon Booth 2024-08-15 20:40:10 +12:00 committed by Andreas Kling
commit d56da8cf9a
Notes: github-actions[bot] 2024-08-17 05:45:28 +00:00
3 changed files with 31 additions and 13 deletions

View file

@ -0,0 +1,4 @@
%EF%BF%BC=&%EF%BF%BD=x&%EF%BF%BD=a
'\ufffc' => ''
'\ufffd' => '\u0078'
'\ufffd' => '\u0061'