uppercase-form-method¶
Added in NEXT_DJANGOFMT_VERSION · Related issues · View source
Fix is always available.
What it does¶
Checks for non-lowercase method attribute values on <form> elements.
Why is this bad?¶
HTML form method values are case-insensitive, but the HTML spec and
conventional usage write them in lowercase (get, post, dialog).
Uppercase or mixed-case values are stylistically inconsistent.
Values containing template interpolation are skipped.
Example¶
Use instead:
Fix safety¶
This rule's fix is marked as safe: the HTML spec defines form method as a
case-insensitive enumerated attribute, so lowercasing preserves runtime
semantics.