Skip to content

Commit

Permalink
fix: The <form> element now always exposes the role "form"
Browse files Browse the repository at this point in the history
This has been changed in the ARIA spec in
w3c/html-aria#402.

See also testing-library/dom-testing-library#1293
  • Loading branch information
julienw authored Mar 15, 2024
1 parent 5e702e9 commit b06b77e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sources/getRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const localNameToRoleMappings: Record<string, string | undefined> = {
dt: "term",
fieldset: "group",
figure: "figure",
// WARNING: Only with an accessible name
form: "form",
footer: "contentinfo",
h1: "heading",
Expand Down

0 comments on commit b06b77e

Please sign in to comment.