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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 1 Dec 2009 18:08:48 -0600
Message-ID: <dd0fbad0912011608t7d5e8bd5pa8c251e130d067ce@mail.gmail.com>
On Tue, Dec 1, 2009 at 6:01 PM, Hugh Guiney <hugh.guiney at gmail.com> wrote:
> Is there a reason we can't reuse <legend> (or <label>)? I don't think
> giving <p> an attribute that it can only use inside of <figure> is
> very straightforward.

Yes.  <legend> is documented as having rendering issues in all current
browsers if placed outside of a <fieldset> (for example, in some
browsers it will *generate a fieldset* around itself).  <label>
doesn't have appropriate keyboard accessibility when used for

The @caption proposal isn't for an attribute on <p> only, but rather
for an attribute on any element that is a child of a <figure>.  (It's
just that most of the time using a <p> is most appropriate.)

Received on Tuesday, 1 December 2009 16:08:48 UTC

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