Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct button activation behavior to block auto state buttons from being command buttons #11048

Closed

Conversation

lukewarlow
Copy link
Member

@lukewarlow lukewarlow commented Feb 19, 2025

Correct button activation behavior to block auto state buttons from being command buttons

Fixes #11044

See #10832 for more context

  • At least two implementers are interested (and none opposed):
  • Tests are written and can be reviewed and commented upon at:
  • Implementation bugs are filed:
    • Chromium: …
    • Gecko: …
    • WebKit: …
    • Deno (only for timers, structured clone, base64 utils, channel messaging, module resolution, web workers, and web storage): …
    • Node.js (only for timers, structured clone, base64 utils, channel messaging, and module resolution): …
  • Corresponding HTML AAM & ARIA in HTML issues & PRs:
  • MDN issue is filed: …
  • The top of this comment includes a clear commit message to use.

(See WHATWG Working Mode: Changes for more details.)


/form-elements.html ( diff )

@lukewarlow
Copy link
Member Author

cc @keithamus I want to clarify whether the buttons type attribute really should be invalid AUTO not invalid submit?

I guess given we allow type="reset" it might make sense to allow type="foobar" to work as a submit button but imo it's less obvious.

@lukewarlow lukewarlow marked this pull request as draft February 20, 2025 10:06
@lukewarlow
Copy link
Member Author

Based on discussions in whatnot I'm going to put up a new PR that supersedes this

@annevk
Copy link
Member

annevk commented Feb 20, 2025

I guess this is replaced by #11053?

@lukewarlow lukewarlow closed this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Commandfor buttons with missing or invalid type attributes currently work as command buttons
2 participants