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

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

From: Simon Pieters <zcorpan@gmail.com>
Date: Wed, 20 Jun 2007 09:19:50 +0200
Message-ID: <op.tt7lbchq7a8kvn@hp-a0a83fcd39d2>
On Wed, 20 Jun 2007 00:28:37 +0200, Ian Hickson <ian at hixie.ch> 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.

FWIW, <script src> has empty content model but still requires the end tag.

-- 
Simon Pieters
Received on Wednesday, 20 June 2007 00:19:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC