W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2006

[whatwg] Empty elements

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 16 Feb 2006 00:16:05 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0602160015130.28514@dhalsim.dreamhost.com>
On Wed, 15 Feb 2006, Michael Enright wrote:
>
> What about '<foo />' with a space between 'o' and '/' ? There are many 
> "legacy" pages with that kind of mark-up on <br> elements and so forth.

There are also lot of legacy pages that do it on things like <p>, sadly.

On <br> it's harmless, and it doesn't help either way to say that it 
makes an empty element, since it's empty anyway. On other elements, it 
makes HTML5 UAs have a different DOM that legacy UAs.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 15 February 2006 16:16:05 UTC

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