W3C home > Mailing lists > Public > www-archive@w3.org > June 2007

RE: [whatwg] void elements vs. content model = "empty"

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 19 Jun 2007 22:45:18 +0000 (UTC)
To: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Cc: www-archive@w3.org
Message-ID: <Pine.LNX.4.64.0706192243190.10651@dhalsim.dreamhost.com>

On Wed, 20 Jun 2007, Kristof Zelechovski wrote:
>
> A void element cannot have any content because there is no way to specify it
> in the source.  Such a relation is called entailment.

No, the syntax doesn't impose requirements on the content model. For 
example, the syntax doesn't let you put <ul>s inside <p>s, but the content 
model allows it. It would be quite possible for us to allow content inside 
void elements, it would just mean you couldn't represent that content 
model in text/html (you'd have to use XML or some other serialisation of 
the DOM, like JSON).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 19 June 2007 22:45:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:33:10 UTC