W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

(unknown charset) [whatwg] text/html flavor conformance checkers and <foo />

From: (unknown charset) Olav Junker Kjær <olav@olav.dk>
Date: Tue, 26 Apr 2005 16:18:11 +0200
Message-ID: <426E4DA3.6050306@olav.dk>
James Graham wrote:
> Is there a good reason that <foo /> cannot be valid HTML5? Any parser 
> which doesn't support <foo /> also doesn't support much of the web 
> content produced in the last 2 years. In this case a conformance checker 
> could emit a warning (maybe only a strict warning) since it's not 
> impossible that people will expect HTML5 to work in a parser that's 
> incompatible with real-world HTML4.

A conformance checker should check conformance to the spec, not 
conformance to the behavior of actual UA's. But new specs should 
(arguable) be aligned with the behavior of actual UA's if they are to be 
backwards compatible.

There have been discussions about redefining the low-level parsing of 
HTML to bring it more in alignment with how current UA's works. If we 
want XHTML 1.0 to be legal HTML, it would make sense to allow the 
trailing slash in empty elements. That way, you could legally server the 
same content as both HTML and XHTML. (You can do that now, but it won't 
validate as HTML which is a drag. If you want to be able to serve the 
same content as both HTML and XHTML, you would want to make sure that it 
validates as both HTML and XHTML.)

regards
Olav Junker Kj?r
Received on Tuesday, 26 April 2005 07:18:11 UTC

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