Skip to content

role alert has an implicit aria-live value of assertive#863

Merged
rviscomi merged 1 commit into
GoogleChrome:mainfrom
BogdanCerovac:patch-1
May 22, 2026
Merged

role alert has an implicit aria-live value of assertive#863
rviscomi merged 1 commit into
GoogleChrome:mainfrom
BogdanCerovac:patch-1

Conversation

@BogdanCerovac
Copy link
Copy Markdown
Contributor

Elements with the role alert have an implicit aria-live value of assertive, and an implicit aria-atomic value of true.

So extra aria-live="assertive" is redundant and I suggest we remove it.

Spec: https://www.w3.org/TR/wai-aria-1.2/#alert

Added also <button type="button"> as <button> is a submit and can cause form submissions when it is a descendant of <form> elements.

Elements with the role alert have an implicit aria-live value of assertive, and an implicit aria-atomic value of true.

https://www.w3.org/TR/wai-aria-1.2/#alert

And I added a <button type="button"> as <button> is a submit and can cause form submissions when it is a descendant of <form> elements
@rviscomi
Copy link
Copy Markdown
Member

Thanks @BogdanCerovac! And thanks @knowler for the review!

@rviscomi rviscomi enabled auto-merge (squash) May 22, 2026 14:05
@rviscomi rviscomi merged commit 4fdc503 into GoogleChrome:main May 22, 2026
4 of 5 checks passed
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.

3 participants