This Wiki page is edited by participants of the HTML Accessibility Task Force. It does not necessarily represent consensus and it may have incorrect information or information that is not supported by other Task Force participants, WAI, or W3C. It may also have some very useful information.
Remove Paragraph-Section-Heading loophole for not providing a text alternative
Remove the Paragraph-Section-Heading loophole for not providing a text alternative.
The "Images whose contents are not known" section of the HTML5 spec contains the following loophole for not providing a text alternative.
In some unfortunate cases, there might be no alternative text available at all, either because the image is obtained in some automated fashion without any associated alternative text (e.g. a Webcam), or because the page is being generated by a script using user-provided images where the user did not provide suitable or usable alternative text (e.g. photograph sharing sites), or because the author does not himself know what the images represent (e.g. a blind photographer sharing an image on his blog).
In such cases, the alt attribute's value may be omitted, but one of the following conditions must be met as well:
- The title attribute is present and has a non-empty value.
- The img element is in a figure element that contains a figcaption element
that contains content other than inter-element whitespace.
- The img element is part of the only paragraph directly in its section, and is the only img element without an alt attribute in its section, and its section has an associated heading.
The third bullet: "The img element is part of the only paragraph directly in its section, and is the only img element without an alt attribute in its section, and its section has an associated heading" seems to be an unnecessary loophole for not providing a text alternative as well as unnecessarily complex for tools and authors.
Is there any rationale for this loophole?
Please remove this exception.
HTML5 Issue and Change Proposal
This is associated with HTML TRACKER ISSUE-31:
Change Proposal - Replace img Guidance for Conformance Checkers: