W3C home > Mailing lists > Public > public-html@w3.org > September 2009

Re: what is dt?

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Fri, 18 Sep 2009 16:24:36 +0200
Message-ID: <4AB39824.3070609@xn--mlform-iua.no>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Jeremy Keith <jeremy@adactio.com>, Maciej Stachowiak <mjs@apple.com>, Shelley Powers <shelleyp@burningbird.net>, Smylers@stripey.com, public-html@w3.org
Tab Atkins Jr. On 09-09-18 16.12:

> On Thu, Sep 17, 2009 at 7:51 PM, Leif Halvard Silli
> <xn--mlform-iua@xn--mlform-iua.no> wrote:
>> To illustrate my point, we could end up with this:
>>
>> <figure>
>> <h1>Exhibit A</h1>
>> <div><h1>Madonna and child</h1>
>> <img src="foo" alt="bar">
>> </div>
>> </figure>
> 
> It's easy to avoid that situation - the caption for the <figure> would
> just be the *first* child heading element.  So it wouldn't be
> necessary to wrap a <div> around the content there - the second <h1>
> is implicitly part of the content, not the caption.


Would this be easy for authors to handle? I don't think so.

 
>> Another "fun" effect: What if the <h1> would be the very last element?
>> (<figure> allow the caption as last element.)
> 
> For this you *would* need to wrap the content in a <div> if it has a
> top-level heading, so that the first *child* heading of <figure> is
> the caption (the content headings would then be at least grandchildren
> instead, and wouldn't be considered).

If a figure body element is sometimes needed and sometimes not, 
then that would be not be easy for authors either.

>> Another problem: The h1-h6 we have today are supposed to contain rather
>> short titles that can be displayed in an outline. Suddenly, however, when
>> h1-h6 is used as caption, that rule can not not apply. (Note the development
>> of the content model of <caption> - see the draft.)
> 
> Since <figure> is a sectioning root, its headings should never be
> displayed in the document outline.

Fine, but the problem is the issue of having different content 
models for the same element. Well, technically we have this 
problem already - dt has different content models when inside 
<figure> and when inside <dl>. I think one risks that authors 
would start to add flow content into h1-h6 also /outside/ the 
figure caption context.
-- 
leif halvard silli
Received on Friday, 18 September 2009 14:25:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:08 UTC