Skip to content
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

HTML writer: emit empty alt tag in figures #5518

Merged
merged 1 commit into from
May 28, 2019
Merged

HTML writer: emit empty alt tag in figures #5518

merged 1 commit into from
May 28, 2019

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