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

[whatwg] Significant inline content vs. attributes and sectional elements

From: Billy Wong <billyswong@gmail.com>
Date: Fri, 10 Mar 2006 19:56:14 +0800
Message-ID: <500602e30603100356t2bd0a76foc38e5696901ccefa@mail.gmail.com>
On 3/10/06, Ian Hickson <ian at hixie.ch> wrote:
> On Thu, 9 Mar 2006, Henri Sivonen wrote:
> >
> > It seems to me that the WA 1.0 spec presents requirements on document
> > conformance that are very different from each other in spirit in a
> > seemingly arbitrary way.
> >
> > On one hand, some elements are required to have significant inline
> > content or are barred from having traditional flow content while, on the
> > other hand, the requirements on attribute occurrence are very lax and
> > sectional elements are not required to have any content at all. These
> > requirements seem very inconsistent in spirit to me.
> Yeah, I haven't really thought these through yet.
> Here are some of the things I'm worried about:
>  * It should be possible for scripts to add content to placeholder
>    elements without those placeholder elements being non-conformant.
>    This is a very useful programming idiom, not least of which because
>    adding content to an existing element (whether attributes or child
>    nodes) is a lot easier than adding the element in the first place.
>  * It should be possible to have a group of pages that have a similar
>    structure, with elements annotated as necessary. For example, a menu
>    list could be the same on each page, but with the currently loaded
>    page simply not having the "href" attribute on its link, or some such.

Rather than having a link with no "href" attribute, the same structure
can also be achieved by having a link with an empty "href" attribute.
Received on Friday, 10 March 2006 03:56:14 UTC

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