W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2009

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 30 Nov 2009 18:27:36 -0600
Message-ID: <dd0fbad0911301627p70c5450eje61f3671faf899d3@mail.gmail.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:19 UTC