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. -- And through this revolting graveyard of the universe the muffled, maddening beating of drums, and thin, monotonous whine of blasphemous flutes from inconceivable, unlighted chambers beyond Time; the detestable pounding and piping whereunto dance slowly, awkwardly, and absurdly the gigantic tenebrous ultimate gods --the blind, voiceless, mindless gargoyles whose soul is Nyarlathotep. (Lovecraft) John Cowan [email protected]
