Re: Tidy's handling of <noscript>

* Paul wrote:
>I cannot tell if it is me or tidy who is doing the wrong thing.

It's you, noscript must not be containt in 'head'. Tidy closes the
'head' if it encounters elements not included in the content model
of element 'head', so, if it encounters 'noscript', the 'body'
already began. This is a side-effect of the SGML OMMITTAGS feature
used in HTML, e.g.

  <!DOCTYPE ...>
  <title>...</title>
  <p>...

is a complete valid HTML document (after replacing '...' in the document
type declaration with a valid HTML FPI). The html|head|body elements are
still there for the parser. It opens the 'head' if it encounters
'<title>' and closes the 'head' and opens the 'body' when encountering
the '<p>'
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/

Received on Sunday, 19 August 2001 13:29:01 UTC