Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

Entries from 2021-11-14 to 1 day

各ブラウザがmaxlengthを指定したテキストボックスにサロゲートペアの文字を何文字入力できるか

<input type="text" maxlength="5">に対して、各文字をペーストしつづけてみた。 あ 𩸽 か゚ Chrome on Windows11 あああああ 𩸽𩸽 か゚か゚か Edge on Windows11 あああああ 𩸽𩸽 か゚か゚か Edge IE mode on Windows11 あああああ 𩸽𩸽𩸽𩸽𩸽 か゚か゚か Firefox on Windows11 あああああ 𩸽…