question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New rule: H32 - submit-button

See original GitHub issue

H32 - submit-button

The test checks, if data in a form can be submitted explicitly by using submit buttons (input type=“submit”, input type=“image”, or button type=“submit”).

Tags: wcag2a, wcag322, cat.forms, experimental

Selector

Select each node that has an form element with action and method attributes

Checks

forms/submit-button

  • Check if the form contains a button [one of (input type=“submit”, input type=“image”, or button type=“submit”]; Pass if true.
  • Check if only textarea element(s) are present with no buttons; Forms don’t have input:not(hidden) or select elements; Fail if true.
  • Otherwise, cantTell

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dylanbcommented, Mar 12, 2021

I think this would be a noisy rule and we should close this @WilcoFiers

1reaction
dylanbcommented, Sep 24, 2018

There is no instance where this rule can definitively determine that a violation exists.

Therefore I think this rule should be inverted. It should pass forms with a valid submit mechanism and it should pass forms that meet the implicit submission restrictions. In all other cases it should return a review item.

Read more comments on GitHub >

github_iconTop Results From Across the Web

H32: Providing submit buttons | Techniques for WCAG 2.0 - W3C
Description. The objective of this technique is to provide a mechanism that allows users to explicitly request changes of context. The intended use...
Read more >
Providing submit buttons (wcag/h32) - HTML-validate
WCAG 2.1 technique H32 requires each <form> element to include at least one submit button in order to allow users to interact with...
Read more >
Forms submitted using buttons : Functional Accessibility Evaluator 2.3
"Page" means that the result applied to the page. For example, the rule "One main landmark on the page" is a page level...
Read more >
Instructions for Form 1023-EZ (Rev. January 2023) - IRS
Most organizations seeking exemption from federal income tax under section 501(c)(3) are required to complete and submit an application. However ...
Read more >
<input type="submit"> - HTML: HyperText Markup Language
A string indicating the HTTP method to use when submitting the form's data; this value overrides any method attribute given on the owning...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found