W007 - Herst/bootlint-ng GitHub Wiki

Note: Below is the original page from the Bootlint documentation, some of the info here might not apply to Bootlint-NG!


W007

Found one or more <button>s missing a type attribute.

It's best-practice to always set a type on <button>s. If a <button> lacks a type attribute, it defaults to being a type="submit" button, which will cause it to, when clicked, submit any form it's associated with. This behavior is often not desired, so it's best to be explicit about the type of all your <button>s. Valid types are: type="button", type="submit", and type="reset" .

See also: WTF, HTML and CSS?: Always set a type on <button>s

⚠️ **GitHub.com Fallback** ⚠️