-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: img with missing alt should have role img (#430)
Co-authored-by: Cameron Cundiff <cundiff@adobe.com> Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
- Loading branch information
1 parent
c9e8dc7
commit 76e8f93
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"dom-accessibility-api": patch | ||
--- | ||
|
||
Maintain `img` role for `img` with missing `alt` attribute. | ||
|
||
Previously `<img />` would be treated the same as `<img alt />`. | ||
`<img />` is now treated as `role="img"` [as specified](https://w3c.github.io/html-aam/#el-img-empty-alt). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters