Shorn
Shorn

Reputation: 21446

How can I disable specific "structural warnings" that Chrome prints in the console

In the most recent Chrome update of my browser (64.0.3282.140), Chrome has started spitting out yet more HTML structural warnings, specifically now:

[DOM] Input elements should have autocomplete attributes ...

These warning may not be new to Chrome, the Stripe checkout library recently changed so perhaps these structural issues were introduced by the Stripe team. Either way there's not much I can do about it and I'm tired of mentally filtering these messages.

Here's a screenshot of my console window now, even with the "collapse" logic for similar console messages - my console now contains more opinions from Chrome than it does log messages from my application.

A console window full of Chrome HTML structure warnings

I don't want to see these specific messages at all - but I don't want to filter all warnings.

Is there any way I can control those specific Chrome messages about "passive event listener" and "input elements should have autocomplete"?

Upvotes: 2

Views: 1229

Answers (1)

Tylik Stec
Tylik Stec

Reputation: 148

Change autocomplete="off" to autocomplete="foo" for every <input> element and all warnings in the console should disappear.

Upvotes: 1

Related Questions