[whatwg] <figure><img><* caption>

On Mon, Nov 30, 2009 at 6:07 PM, Kit Grose <kit at iqmultimedia.com.au> wrote:
> Is there a semantic reason for <p caption> rather than simply repurposing the <caption> element itself? It seems to me that captions in this context are conceptually identical to captions for tables?

Not a semantic reason, just a practical one.  All existing browsers do
something completely wrong when they encounter <caption> outside of a
<table>.  It's at least as bad as their handling of <legend> outside
<fieldset>.

Otherwise, yes, <caption> would definitely be the ideal.

~TJ

Received on Monday, 30 November 2009 16:27:36 UTC