Closed brattonross closed 6 months ago
Awesome thanks! What is the purpose of the attributes prefixed with form
? eg formnovalidate
vs novalidate
The attributes prefixed with form
can be placed on <button>
, <input type="submit">
, or <input type="image">
elements to override the non-prefixed attributes on <form>
e.g. if you have <form method="post">
, and then put a <button formmethod="get">
inside it, clicking that button will submit the form with the GET
method
Ah that's very cool! Do you think we should name them form_method
instead? Not sure I have an opinion on keeping naming parity with the attribute precisely.
If you're not worried about keeping parity with HTML, then I agree that snake casing will read easier :) I'll update my PR
Looks great, thank you very much!
Adds various attributes related to form submission, based on the attributes listed by the MDN docs.
Note that the
target
attribute was already defined in the "links and areas" section ofattribute.gleam
.