W3C home > Mailing lists > Public > www-archive@w3.org > November 2009

Re: XHTML character entity support

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 24 Nov 2009 01:51:58 +0000 (UTC)
To: John Cowan <cowan@ccil.org>
Cc: www-archive@w3.org
Message-ID: <Pine.LNX.4.62.0911240146191.30498@hixie.dreamhostps.com>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:43:36 UTC