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

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

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 29 Nov 2006 17:45:46 +0100
Message-ID: <op.tjsd6ked64w2qv@id-c0020.oslo.opera.com>
On Wed, 29 Nov 2006 17:31:19 +0100, Mihai Sucan <mihai.sucan at gmail.com>  
> XML parsers break if the code has no trailing slashes where needed, the  
> majority of HTML parsers do not break if the author uses trailing  
> slashes.
> Some web developers also make use, on the server, of XHTML and XML  
> documents, which end up being sent to the UA - parts of, or entirely.  
> Why trailing slashes need to break conformance? If trailing slashes are  
> not accepted into HTML 5, then many other bad things should be banned.  
> From the start, the error recovery should be eliminated, and treated as  
> XML parsers do: stop on error, with no recovery.

That doesn't make sense at all. As said before, "parse error" does not  
mean that parsing has to stop, it merely indicates that a syntax error has  
to be flagged somewhere. Parsers are allowed to stop processing at that  
point, but that doesn't make sense for any parser that tries to collect  
data. Only for parsers validating data.

Anne van Kesteren
Received on Wednesday, 29 November 2006 08:45:46 UTC

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