W3C home > Mailing lists > Public > public-html@w3.org > January 2013

current definition of <figure> in HTML is problematic

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Thu, 24 Jan 2013 09:44:20 +0000
Message-ID: <CA+ri+V=dqT-vW+UQY9xzn-VyHwgDtJ4_SytkyKF0OW7kir8dnQ@mail.gmail.com>
To: HTMLWG WG <public-html@w3.org>
I think the current definition [4] of  the figure element leads to
developers thinking that they cannot use it to caption an image or images
that are ket parts of the content:

"The element can thus be used to annotate illustrations, diagrams, photos,
code listings, etc, that are referred to from the main content of the
document, but that could, without affecting the flow of the document, be
moved away from that primary content, e.g. to the side of the page, to
dedicated pages, or to an appendix."

For example, in this current discussion
http://html5doctor.com/html5-simplequiz-7-pinterest/

developers are making statements such as [1]:

"I donít think figure is appropriate, because itís for things that can be
taken out of flow and moved to an appendix, and the pins on the page are
the whole point of the flow"

"<figure>s are intended to contain accessory content, not the main
substance of the section in question. The spec says they can be moved away
from the main flow of the document without affecting the documentís
meaning. I therefore donít think itís appropriate to use them for the main
image and description here." [2]

And highly influential developers such as Jeremy Keith appear to agree [3]

There appears to be no good reason why a page containing an image that is
the main content of the page (example:
http://www.flickr.com/photos/46646759@N03/8408567494/in/explore-2013-01-23)
should not be captioned using the following pattern, if fact it should be
encouraged.

<figure>
<img>

<figcaption> caption text</figcaption>
</figure>


Suggest modifying the definition to remove the unecessary constraint on
figure use.

[1] http://html5doctor.com/html5-simplequiz-7-pinterest/#comment-30251
[2] http://html5doctor.com/html5-simplequiz-7-pinterest/#comment-30262
[3] http://html5doctor.com/html5-simplequiz-7-pinterest/#comment-30255
[4]
http://www.w3.org/html/wg/drafts/html/master/grouping-content.html#the-figure-element

-- 
with regards

Steve Faulkner
Technical Director - TPG

www.paciellogroup.com | www.HTML5accessibility.com |
www.twitter.com/stevefaulkner
HTML5: Techniques for providing useful text alternatives -
dev.w3.org/html5/alt-techniques/
Web Accessibility Toolbar - www.paciellogroup.com/resources/wat-ie-about.html
Received on Thursday, 24 January 2013 09:45:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:36 UTC