困った
username でない入力欄に Chrome に保存した ID がオートフィルされてしまい、困った。
調べた
上記 §4.10.18.7.2 (Processing model) の末尾:
ユーザーエージェントは、ユーザーが要素のオートフィルフィールド名を上書き可能にしてもよい。
フォームのコントロール | New autofill field name |
---|---|
an input element whose type attribute is in the Text state that is followed by an input element whose type attribute is in the Password state | "username" |
つまり、当該の input は、password の直前にあったので、username とという名前に補正されたようだ。
なお、password 欄の記述はポップアップ用なので、問題の input と同時に表示されることはなく、謎に見えたという顛末。