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

Tab Atkins Jr. jackalmage at gmail.com
Mon Nov 30 16:27:36 PST 2009


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



More information about the whatwg mailing list