Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mb21
Copy link
Collaborator

@mb21 mb21 commented May 22, 2019

The same alt text is already in the <figcaption> and screen-readers would read it twice, see #4737

Note: Image attr [] (s,tit) wouldn't work, since this would emit no alt tag which is invalid HTML.

The same text is already in the <figcaption> and
screen-readers would read it twice, see jgm#4737
@jgm
Copy link
Owner

jgm commented May 28, 2019

My only concern about this is that some accessibility validation software might complain about the missing alt tag. (I'm not sure about this, though.) I agree that this would improve usability with screen readers. I also agree that ultimately we need to separate alt and caption. (That's the issue for adding a proper figure type.)

@mb21
Copy link
Collaborator Author

mb21 commented May 28, 2019

My only concern about this is that some accessibility validation software might complain about the missing alt tag.

That's why it emits an empty alt tag alt=""... see e.g. https://davidwalsh.name/accessibility-tip-empty-alt-attributes

@jgm jgm merged commit 3f57f49 into jgm:master May 28, 2019
@jgm
Copy link
Owner

jgm commented May 28, 2019

OK, thanks.

@mb21 mb21 deleted the figure-alt branch May 28, 2019 22:00
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.

2 participants