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

Kristof Zelechovski giecrilj at stegny.2a.pl
Tue Jun 19 15:38:42 PDT 2007


A void element cannot have any content because there is no way to specify it
in the source.  Such a relation is called entailment.
Chris

-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Ian Hickson
Sent: Wednesday, June 20, 2007 12:29 AM
To: ryan
Cc: whatwg-whatwg.org at lists.whatwg.org
Subject: Re: [whatwg] void elements vs. content model = "empty"

On Wed, 18 Apr 2007, ryan wrote:
>
> Also, if there's a difference between content=empty and 'void elements' 
> it deserves an explanation.

One is just about the content model, the other is just about the syntax. 
They're not really related, though it happens to be the case that all 
elements that have an empty content model are void elements in HTML.






More information about the whatwg mailing list