rule @community/rule-button-type-explicit

Button Type Explicit

Every `<button>` element MUST declare an explicit `type` attribute (`button`, `submit`, or `reset`). The HTML default is `submit`, which inside a `<form>` causes any unrelated button (e.g.…

Skill
@community
Domain
frontend-engineering
Version
1.0.0
Quality
0.0
Edges
0 out · 0 in
Tokens
82/384/758
$ aoe install @community/rule-button-type-explicit

Projection

Always in _index.xml · the agent never has to ask for this.

ButtonTypeExplicit [rule] v1.0.0

Every <button> element MUST declare an explicit type attribute (button, submit, or reset). The HTML default is submit, which inside a <form> causes any unrelated button (e.g. an icon toggle) to submit the form on click — a common, hard-to-debug bug.

Source

aoe-engine/examples/frontend-design/primes/compiled/@community/rule-button-type-explicit/atom.yaml