wil*_*der 16 console dom warnings google-chrome
将Google Chrome升级到版本63.0.3239.84后,我开始在控制台中收到错误和警告,例如:
Run Code Online (Sandbox Code Playgroud)[DOM] Found 3 elements with non-unique id #SMTPSetting: [DOM] Input elements should have autocomplete attributes (suggested: "current-password"):
[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
| 归档时间: |
|
| 查看次数: |
11985 次 |
| 最近记录: |