Chrome ignores autocomplete=“off”

后端 未结 30 1553
礼貌的吻别
礼貌的吻别 2020-11-22 00:42

I\'ve created a web application which uses a tagbox drop down. This works great in all browsers except Chrome browser (Version 21.0.1180.89).

Despite both the

30条回答
  •  遇见更好的自我
    2020-11-22 01:18

    For a reliable workaround, you can add this code to your layout page:

    Chrome respects autocomplete=off only when there is at least one other input element in the form with any other autocomplete value.

    This will not work with password fields--those are handled very differently in Chrome. See https://code.google.com/p/chromium/issues/detail?id=468153 for more details.

    UPDATE: Bug closed as "Won't Fix" by Chromium Team March 11, 2016. See last comment in my originally filed bug report, for full explanation. TL;DR: use semantic autocomplete attributes such as autocomplete="new-street-address" to avoid Chrome performing autofill.

提交回复
热议问题