W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2006

[whatwg] image captions

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Thu, 06 Apr 2006 17:19:30 +0200
Message-ID: <20060406171930.x7oweg4bqe6oc0s8@webmail.annevankesteren.nl>
Quoting Alexey Feldgendler <alexey at feldgendler.ru>:
>>>>      <aside>
>>>>        <h1>Figure 1: Some image found <a href="...">here</a></h1>
>>>>        <p><img src="..."></p>
>>>>      </aside>
>>> I'm afraid this won't degrade gracefully: the <h1> would confuse 
>>> the   document outline facilities in today's user agents.
>> So use a different number...
> Sounds like a hack.

I guess that depends on how you view it. Perhaps it's a hack from an HTML4 UA
point of view but I guess most things are a hack seen from such a UA. Take
<canvas> for example... It is one that degrades gracefully though. Another
option would be something like:

  <dt><img alt="">

... given that <dl> only associates things and is not really a "definition"
thingie anymore.

> This heading shouldn't be within the document's main tree of 
> headings. It  should be completely taken out, that's what "aside" 
> means. But it can't be  done in a backwards compatible way.

It would be useful if it was part of the document's outline actually. 
Opera for
example lets you easily navigate headers...

Anne van Kesteren
Received on Thursday, 6 April 2006 08:19:30 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC