Why Firefox autocomplete even with different input name?

后端 未结 4 1042
鱼传尺愫
鱼传尺愫 2021-02-12 20:15

Or How does Firefox determine where the password/username goes?

If I change name, id, title, class of an input element Firefox keeps filling it with password or email.

4条回答
  •  被撕碎了的回忆
    2021-02-12 21:09

    Are those the only two elements on the form? Firefox is likely storing the structure of the form (two input boxes, one flagged as normal, one flagged as password) and filling in saved information without respect to the ID of the input elements.

    Try this: add an extra input element to the form and see what happens. Either Firefox will not fill in anything, or you'll find your name in the first field and the password field filled in, while the second input element is blank.

提交回复
热议问题