You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/button-has-type.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
3
3
<!-- end auto-generated rule header -->
4
4
5
-
The default value of `type` attribute for `button`HTML element is `"submit"` which is often not the desired behavior and may lead to unexpected page reloads.
6
-
This rules enforces an explicit `type` attribute for all the `button` elements and checks that its value is valid per spec (i.e., is one of `"button"`, `"submit"`, and `"reset"`).
5
+
The default value of the `type` attribute for HTML `button`elements is `"submit"`. This is often not the desired behavior and may lead to unexpected page reloads.
6
+
This rules enforces an explicit `type` attribute for all `button` elements and checks that its value is valid per the spec (i.e., is one of `"button"`, `"submit"`, and `"reset"`).
0 commit comments