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 ...>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:50 UTC