Re: ISSUE-83 ACTION-152 Change Proposal for the use of dt/dd in figure and details

On Fri, 27 Nov 2009 22:46:46 -0600, Tab Atkins Jr.:
> On Fri, Nov 27, 2009 at 10:13 PM, Maciej Stachowiak:
>> This does seem to mitigate the concern. I'm not sure whether it completely
>> eliminates it. Is <figure> any trickier to use correctly than other new
>> HTML5 elements, with this technique?
> 
> Marginally trickier.  The js hack used for the other elements is
> conceptually simpler, but this hack doesn't depend on js being
> available, which is a plus.  I don't think the difference in
> trickiness is significant.

First, I'm surprise that it is news that <div> can be wrapped around 
<figure>, even for the IE67 issues ... 

Second, if we can accept wrapping the element in a <div>, then HTML 4 
already has <object>. (IE6 and 7 requires that <div> - otherwise it is 
not required.) <object> already creates a new outline context - as 
<figure> is supposed to do (it is bound to take a long time before it 
happens).

Here is HTML 4 native and valid "figure" element:

<div><object>
	<img src="image" alt="text">
    <p>Text</p>
</object></div>

One could say that <object> is lacking is a captioning element. Or, 
perhaps not:

<div>
<p>Caption</p>
<object>
	<img src="image" alt="text">
</object></div>

One could even combine <figure> and <object>, like this:

<figure>
Whatever is outside the object elements counts as caption.
	<object>
		<img src="image" alt="text">
	</object>
</figure>

See my proposal regarding inline figures/objects [1],  but note that 
<object> has better IE6/IE7 support as a block element wrapped inside a 
<div>, than it has as an inline element wrapped inside a <p>.

PS to Shelley and all others: A caption is an element that forms a 
bridge between the content outside the figure/table/object/whatever and 
inside the figure/table/object/whatever.

[1] http://lists.w3.org/Archives/Public/public-html/2009Nov/0615
-- 
leif halvard silli

Received on Monday, 30 November 2009 02:07:57 UTC