Skip to content

refactored button type rules #405

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

Closed
wants to merge 1 commit into from
Closed

refactored button type rules #405

wants to merge 1 commit into from

Conversation

stevefaulkner
Copy link
Collaborator

@stevefaulkner stevefaulkner commented Mar 5, 2022

Closes #395

divided allowed roles based on whether input type image/submit/reset (and <button> without type or invalid type) are descendants of a form element


Preview | Diff

@stevefaulkner stevefaulkner added the needs implementation commitment Cannot merge into spec until implementations in conformance checkers has been confirmed. label Mar 5, 2022
<th id="el-input-image" tabindex="-1">
<a data-cite="html/input.html#image-button-state-(type=image)">`input type=image`</a>
<th id="el-button-input-image-reset-submit-form" tabindex="-1">
[^button^] with a missing or invalid [^button/type^], <a data-cite="html/input.html#image-button-state-(type=image)">`input type=image`</a>, <a data-cite="html/input.html#submit-button-state-(type=submit)">`input type=submit`</a>, and <a data-cite="html/input.html#reset-button-state-(type=reset)">`input type=reset`</a> , if a descendant of a [^form^] element.
Copy link

@mtrootyy mtrootyy Mar 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed as the following:

  • Before fixed:[^button^] with a missing or invalid [^button/type^],
  • After fixed: `button type=submit`, `button type=reset`, and [^button^] with a missing or invalid [^button/type^],

Because in functionally button type=submit is equal to input type=submit, and button type=reset is equal to input type=reset.

@scottaohara scottaohara added the needs changelog entry once 2 implementations land, we can merge and note it in our changelog. label Apr 4, 2022
@scottaohara
Copy link
Member

closing as incorporating some of these ideas into 446

@scottaohara scottaohara closed this Feb 6, 2023
@scottaohara scottaohara removed needs implementation commitment Cannot merge into spec until implementations in conformance checkers has been confirmed. needs changelog entry once 2 implementations land, we can merge and note it in our changelog. labels Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent allowed roles for "button" elements
3 participants