W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

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

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 19 Apr 2007 13:01:54 +1000
Message-ID: <op.tq0f1gam64w2qv@id-c0020>
[I agree with the points you make.]

On Thu, 19 Apr 2007 06:36:09 +1000, ryan <ryan at theryanking.com> wrote:
> Also, if there's a difference between content=empty and 'void elements'  
> it deserves an explanation.

The difference is that void elements is specific to the HTML serialization  
and that content=empty just says the element is not allowed to have  
content. You could imagine a new element <foo> which would have to be  
written <foo></foo> in the HTML serialization to be conforming because at  
some point in the future we might want to give it a content model too,  
which for now, is just empty.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 18 April 2007 20:01:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:34 UTC