LoginSignup
0
0

More than 3 years have passed since last update.

Chrome で username がオートフィルされて困った件

Posted at

困った

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 と同時に表示されることはなく、謎に見えたという顛末。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0