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

Olav Junker Kjær olav at olav.dk
Mon Apr 25 13:21:05 PDT 2005

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.

More information about the whatwg mailing list