Re: XHTML character entity support

On Mon, 23 Nov 2009, John Cowan wrote:
> Ian Hickson scripsit:
> > > 
> > > (if the first tag you see is an LI, what should you interpolate in 
> > > front of it?  Answer: HTML, BODY, UL in that order).
> > 
> > FWIW: Not in text/html; in text/html it's just HTML, HEAD, BODY.
> 
> The text/html media type doesn't necessarily imply HTML5.  In 
> particular, TagSoup is older than the HTML5 algorithm, and doesn't 
> adhere to it. Specifically, it never outputs a HEAD element unless it 
> has no choice -- that is, unless there is a HEAD element in the input or 
> an element that can only appear in a HEAD element.

TagSoup is could be made more compatible with existing deployed content, 
then. It might be compatible enough for most purposes already, but there 
are pages on the Web that depend on the <head> element being always 
present. Also, the <ul> element should certainly not be implied.

Also, on another note, TagSoup is not compliant with HTML4 if it doesn't 
output a HEAD element without an explicit <HEAD> tag, since <HEAD> is an 
optional tag in HTML4. :-)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 24 November 2009 01:52:27 UTC