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

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

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 24 Feb 2006 23:42:02 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0602242341130.315@dhalsim.dreamhost.com>
On Mon, 25 Apr 2005, 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.

Both would be treated as <foo>, and would report with a parse error 
(unexpected character "/" during attribute tokenisation in the first 
case, and during tagname tokenisation in the second).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 24 February 2006 15:42:02 UTC

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