2 W007
Chris Rebert редактировал(а) эту страницу 2015-03-28 04:41:47 -07:00

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