8000 W007 · twbs/bootlint Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
Chris Rebert edited this page Mar 28, 2015 · 2 revisions

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

Clone this wiki locally
0