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

[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