[uf-new] figure microformat

Benjamin Hawkes-Lewis bhawkeslewis at googlemail.com
Fri Sep 19 02:31:18 PDT 2008


Toby A Inkster wrote:
> After a lot of brainstorming by many people on the microformats wiki, 
> and off-site, what we've arrived at is a "port" of the HTML 5 figure 
> construct to earlier versions of (X)HTML. The HTML 5 figure construct 
> looks like this:
> 
>     <figure>
>         <img ...>
>         <legend>...</legend>
>     </figure>
> 
> This is translated into a microformat as:
> 
>     <div class="figure">
>         <img class="image" ...>
>         <p class="legend">...</p>
>     </div>
> 
> We've also defined various optimisations - for example, in the code 
> above, the 'class="image"' could be removed.

I think the notion that this is in any sense a port of the HTML5 figure 
construct is problematic, since "figure" in HTML5 maps to a wider set 
than supporting images:

"The figure element represents some flow content, optionally with a 
caption, which can be moved away from the main flow of the document 
without affecting the document's meaning.

"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."

http://www.whatwg.org/specs/web-apps/current-work/multipage/embedded0.html#the-figure

If you're going to try and port this feature, I suggest allowing figure 
to have the same scope as the original.

--
Benjamin Hawkes-Lewis



More information about the microformats-new mailing list