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

Lachlan Hunt lachlan.hunt at lachy.id.au
Wed Nov 29 12:34:50 PST 2006

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

More information about the whatwg mailing list