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

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