This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
SPEC SECTION: Images whose contents are not known [1] BUG DESCRIPTION: 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. REFERENCES: http://dev.w3.org/html5/spec/text-level-semantics.html#unknown-images [1] HTML5 ISSUE AND CHANGE PROPOSAL: This is associated with HTML TRACKER ISSUE-31 http://www.w3.org/html/wg/tracker/issues/31 Change Proposal: Replace img Guidance for Conformance Checkers: http://www.w3.org/html/wg/wiki/ChangeProposals/ImgElement20090126
Requesting expedited processing of this bug on behalf of the HTML WG.
The idea here is that this should be conforming (if generated by a photo album site): <section> <h1>My ducks</h1> <img src="photo001.jpeg"> </section> ...in the same way that this is: <figure> <figcaption>My ducks</figcaption> <img src="photo001.jpeg"> </figure> ...or this is: <img src="photo001.jpeg" title="My ducks"> ...because they all essentially have the same semantics: an image with a label. Why would this be bad?
(In reply to comment #2) > The idea here is that this should be conforming (if generated by a photo album > site): > > <section> > <h1>My ducks</h1> > <img src="photo001.jpeg"> > </section> > > ...in the same way that this is: > > <figure> > <figcaption>My ducks</figcaption> > <img src="photo001.jpeg"> > </figure> > > ...or this is: > > <img src="photo001.jpeg" title="My ducks"> > > ...because they all essentially have the same semantics: an image with a label. > > Why would this be bad? Why the allowance for "is part of the only paragraph" instead of "is the sole content of the only paragraph"?
Well in none of the above examples is it the only thing in the paragraph, for example. They all have whitespace. But I could make it have to be the only non-whitespace content in the paragraph if that would satisfy the concern here.
(In reply to comment #4) > Well in none of the above examples is it the only thing in the paragraph, for > example. They all have whitespace. But I could make it have to be the only > non-whitespace content in the paragraph if that would satisfy the concern here. I don't know if it would satisfy Laura's concern fully, but I am curious what the use case for that is, if any. It seems like a bad feature to allow non-whitespace content in the paragraph, since that way you could have a single-paragraph section with an embedded image (perhaps floated), and then the validator would not catch the error that you forgot to omit alt. It is likely that in such a case, the section heading would not be a good text alternative for the image.
(In reply to comment #5) > (In reply to comment #4) > > I don't know if it would satisfy Laura's concern fully, but I am curious what > the use case for that is, if any. It seems like a bad feature to allow > non-whitespace content in the paragraph, since that way you could have a > single-paragraph section with an embedded image (perhaps floated), and then the > validator would not catch the error that you forgot to omit alt. It is likely > that in such a case, the section heading would not be a good text alternative > for the image. Er, I meant to say "forgot to include alt" rather than "forgot to omit".
Laura, please clarify if the suggestion above would satisfy your request. Thanks!
Laura?
I discussed this some with Mike Smith, from the perspective of implementing this rule in validator.nu, and also the perspective of implementing the corresponding accessibility code in WebKit to associate this kind of caption with. Our conclusions: 1) It's pretty hard to implement the rule (either the original version or the modified "only non-whitespace content in the only paragraph" variant) in a validator - it is quite complicated and unlike anything else the validator does. You pretty much have to implement the full HTML5 outline algorithm rule to handle this one exemption to the alt requirements. 2) For similar reasons, it would be hard to implement the corresponding code in a browser engine's accessibility mappings. WebKit currently has no foreseeable reason to implement the outline algorithm, but would need to do so solely to determine what is "the sole paragraph in a section". 3) Even if this really tricky code was written in validators and browser engines, it would likely be buggy because the rule is complicated to handle correctly. 4) The use case for this exception is adequately handled by <figure>. Therefore, I think it would be best to remove this case from the set of conditions where omitting alt is allowed.
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document: http://dev.w3.org/html5/decision-policy/decision-policy.html Status: Accepted Change Description: see diff given below Rationale: The complexity argument is a fair one.
Checked in as WHATWG revision r5026. Check-in comment: Remove the rule that says you can use the heading of a secton as the caption of an image that otherwise lacks alternative text. http://html5.org/tools/web-apps-tracker?from=5025&to=5026
Thanks for removing this exception.
Since this bug is verified closed, the bug-triage sub-team doesn't think it's accessibility task force priority any longer.