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

Anne van Kesteren annevk at opera.com
Wed Apr 18 20:01:54 PDT 2007

[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

More information about the whatwg mailing list