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

[whatwg] Allow trailing slash in always-empty HTML5 elements?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 30 Nov 2006 07:34:50 +1100
Message-ID: <456DEEEA.501@lachy.id.au>
Julian Reschke wrote:
> Lachlan Hunt schrieb:
>> ...
>> The fact is that authors already try things like <div/>, <p/> and even 
>> <a/>.  I've seen all of those examples in the wild.  See, for 
>> instance, the source of the XML 1.0 spec (and many others) which claim 
>> to be XHTML as text/html, littered with plenty of <a/> tags all 
>> throughout.
>> ...
> Huh? The thing at <http://www.w3.org/TR/REC-xml/>? Don't see that 
> problem there.

Yes, did you look at the source code?

<h2><a name="abstract" id="abstract" />Abstract</h2>

See that <a/> element?  That's fine in XML, but it's served as 
text/html, so its treated as an unclosed <a> element.

Lachlan Hunt
Received on Wednesday, 29 November 2006 12:34:50 UTC

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