将Google Chrome升级到版本63.0.3239.84后,我开始收到错误和警告

wil*_*der 16 console dom warnings google-chrome

将Google Chrome升级到版本63.0.3239.84后,我开始在控制台中收到错误和警告,例如:

[DOM] Found 3 elements with non-unique id #SMTPSetting:
[DOM] Input elements should have autocomplete attributes (suggested: "current-password"):
Run Code Online (Sandbox Code Playgroud)
[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 
Run Code Online (Sandbox Code Playgroud)

Ign*_*Ara 31

只需将autocomplete属性添加到输入,警告就会消失.例如:

<div class="form-group">
    <input type="email" class="form-control" autocomplete="email" required>
    <input type="password" class="form-control" autocomplete="password" required>
</div>
Run Code Online (Sandbox Code Playgroud)

如果您没有或只是不想为属性autocomplete使用设置值,autocomplete="foo"那么警告消息就会消失.

有关更多信息,访问:https://chromereleases.googleblog.com/2017/12/stable-channel-update-for-desktop.html

  • 如何在不实际更改我的代码以使用自动填充功能的情况下告诉Chrome关闭它? (13认同)
  • 嗨@Ade,如果你不打算任何自动完成,只需输入_autocomplete ="foo"_即可使警告消失.值_off_不存在. (3认同)
  • 嗯..我不会认为这两个主题是相关的...无论如何,我发现这种技术(点击特定警告)工作...... https://superuser.com/questions/737390/use-在铬-devtools控制台过滤器,以隐藏控制台-错误造成的逐extensio (2认同)
  • @Ade感谢您的链接.他们建议我们使用自动完成并避免_off_或_foo_.为它添加属性和标识符是忘记控制台中警告的唯一选择... (2认同)