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

Re: HTML is a declarative mark-up language

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 30 Jan 2009 00:06:40 +0100
Message-ID: <49823680.9070605@lachy.id.au>
To: Jirka Kosek <jirka@kosek.cz>
Cc: HTML WG <public-html@w3.org>

Jirka Kosek wrote:
> Spec in 4.6.1 says:
> 
> Content model:
> Transparent, but there must be no interactive content descendant.
> 
> Now tell me how can I find which elements I can use inside <a>?

This is a known problem and I'm fairly sure I've raised the issue before 
somewhere.  However, I expect this problem to be solved either by the 
index of elements, or a separate table, which clearly indicates which 
categories each element belongs to.

Such a table would need to list all the elements as table headers down 
the left side, and each of the categories as headers along the top. 
Then within the cells, indicate which elements are in which categories.

But note that the Transparent content model is special, because it 
effectively means the element inherits the content model of its parent 
element, or other ancestor in the case of multiple nested transparent 
elements.  So the answer to your question above is that it depends.

This is something at least I intend to include in the HTML 5 Reference 
(formerly known as The Web Developer's Guide to HTML5, it was renamed 
today after IRC discussion.)

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Thursday, 29 January 2009 23:07:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:28 GMT