W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2001

Re: Tidy's handling of <noscript>

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 19 Aug 2001 19:27:59 +0200
To: "Paul" <valen@nic.com>
Cc: <html-tidy@w3.org>
Message-ID: <uetvnt0hnuf650fd0vu2ljacdoelo5r3aa@4ax.com>
* 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:46 GMT