mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
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:
parent
3a71b8cda3
commit
c747b1c6b5
Notes:
github-actions[bot]
2024-11-14 19:35:54 +00:00
Author: https://github.com/AtkinsSJ
Commit: c747b1c6b5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2347
3 changed files with 26 additions and 5 deletions
2
Tests/LibWeb/Layout/input/unicode-password-input.html
Normal file
2
Tests/LibWeb/Layout/input/unicode-password-input.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<!DOCTYPE html>
|
||||
<input type="password" value="こんにちは、友達のみなさん!">
|
Loading…
Add table
Add a link
Reference in a new issue