LibWeb: Calculate hidden password text using code-point count

This means that an `<input type=password>` will show the correct number
of *s in it when non-ASCII characters are entered.

We also don't need to perform text-transform on these as that doesn't
affect the output length, so I've moved it earlier.
This commit is contained in:
Sam Atkins 2024-11-14 18:06:16 +00:00 committed by Andreas Kling
commit c747b1c6b5
Notes: github-actions[bot] 2024-11-14 19:35:54 +00:00
3 changed files with 26 additions and 5 deletions

View file

@ -0,0 +1,2 @@
<!DOCTYPE html>
<input type="password" value="こんにちは、友達のみなさん!">