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

[whatwg] text/html flavor conformance checkers and <foo />

From: Olav Junker Kjr <olav@olav.dk>
Date: Mon, 25 Apr 2005 22:21:05 +0200
Message-ID: <426D5131.2070201@olav.dk>
Both <foo /> and <foo/> are errors in HTML and should be flagged by a 
conformance checker.
XHTML 1.0 appendix C arguably allows a hybrid syntax which is HTML and 
XHTML at the same time. This is not relevant for HTML5 though, since 
HTML5 explicitly disallows serving XHTML as text/html, so a HTML5 
document is always either HTML or XHTML dependent on the mime type.

Olav Junker Kj?r

Henri Sivonen wrote:
> What should text/html flavor conformance checkers say about <foo />?
> Silently treat as <foo>> as per SGML?
> Silently treat as <foo> as per real world?
> Report a warning?
> Report an error?
> What about <foo/>?
> I am leaning towards reporting an error.
Received on Monday, 25 April 2005 13:21:05 UTC

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