This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10596 - Clarify what <img> represents if no@alt, no@title and NOT the sole content of a <figure>+<figcaption> element
Summary: Clarify what <img> represents if no@alt, no@title and NOT the sole content of...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC All
: P3 normal
Target Milestone: LC
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/embedded...
Whiteboard:
Keywords: a11y
Depends on:
Blocks:
 
Reported: 2010-09-09 23:43 UTC by Leif Halvard Silli
Modified: 2010-10-05 16:06 UTC (History)
7 users (show)

See Also:


Attachments

Description Leif Halvard Silli 2010-09-09 23:43:34 UTC
Request: 
------

In the part of the spec quoted below, replace the following

      ]] If the image is the child of a figure element that has a child figcaption element [[ 

with this (adding the word "only"):

     ]]  If the image is the _only_ child of a figure element  that has a child figcaption element [[

Spec quote:
--------

]]
If the src attribute is set and the alt attribute is not
    [ snip ]
If the image is the child of a figure element that has a child figcaption element, then the contents of the first such figcaption element are the caption information; abort these steps.
[[

Justification
---------

The above descrption in the spec as it stands, fits for both of these examples:

(1) <figure><figcaption>Foo</figcaption><img src=bar></figure>
(2) <figure><figcaption>Foo</figcaption>Lorem [snipped a long text] ipsum: 
                                                                                               <img src=bar></figure>

However, I believed, that the purpose of  the above step in the algorithm, was to describe what should happen when *exactly* the condidtion shown in the <figure> example in the "Images whose contents are not known" sections is met: http://dev.w3.org/html5/spec/embedded-content-1.html#unknown-images

There we found the following example:

<figure>
 <img src="1100670787_6a7c664aef.jpg">
 <figcaption>Bubbles traveled everywhere with us.</figcaption>
</figure>

In this example, there is no adjacent text close to the <img>, and thus I agree that it makes sense to let the user agent present the <figcaption> as the label.  

However, whenever there is text neary by the <img>, then it does not make sene to to use the <figcaption> as caption for the <img>.
Comment 1 Ian 'Hixie' Hickson 2010-09-26 20:00:29 UTC
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: Concurred with reporter's comments.
Comment 2 contributor 2010-09-26 20:01:01 UTC
Checked in as WHATWG revision r5517.
Check-in comment: <figcaption> should only be used as a caption of a no-alt <img> if there's no other content in the <figure>
http://html5.org/tools/web-apps-tracker?from=5516&to=5517
Comment 3 Joshue O Connor 2010-10-05 16:06:34 UTC
Not a TF priority as already fixed.