[Bug 12835] FIGCAPTION should be allowed to NOT be exactly first/last child of FIGURE ("The figcaption element" spec section)

https://www.w3.org/Bugs/Public/show_bug.cgi?id=12835

Bart <bart.humphries@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |bart.humphries@gmail.com
         Resolution|WONTFIX                     |---

--- Comment #9 from Bart <bart.humphries@gmail.com> ---
It's fairly common to have a gallery of images where each picture and that
picture's caption links to a larger version of that image (and only those
elements -- clicking on the empty space surrounding an image shouldn't follow
the link).  Take this sample mockup of a figure/figcaption in a gallery:

"<figure>
<a href="bubbles-work-large.png">
   <img src="bubbles-work.jpeg"
      alt="Bubbles, sitting in his office chair, works on his
           latest project intently.">
   <figcaption>Bubbles at work</figcaption>
</a>
</figure>"

The best choice for the intended results would be a link tag ("a") that wraps
the image tags and the figcaption tags, so that a mouseclick on either the
image or the caption will bring up the larger version of the image.

As it now stands, the spec requires that two separate link tags be used to wrap
the image and then to wrap the content inside the image.  If the image source
changes, then that source must be updated in two different places for the same
figure which violates best practices.

Wrapping the entire figure in a link tag produces undesired results -- a click
on the empty space anywhere around the image will follow the link.  The desired
result is that only a click on the image or caption should follow the link.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Wednesday, 5 November 2014 06:19:05 UTC