W3C home > Mailing lists > Public > www-validator@w3.org > October 2003

Re: <noscript> not allowed in head ?

From: Christoph Päper <christoph.paeper@tu-clausthal.de>
Date: Mon, 20 Oct 2003 17:50:05 +0200
Message-ID: <002f01c39721$d5efe6d0$3ef4ae8b@heim4.tuclausthal.de>
To: <www-validator@w3.org>
Cc: "George Herson" <gherson@snet.net>

George Herson <gherson@snet.net>:
> It appears, then, that <noscript> isn't allowed in the head section

That's correct:


(Entities resolved, comment removed.)

> If so, I think this should this be mentioned on
> http://www.w3.org/TR/html4/interact/scripts.html#edef-NOSCRIPT.

Maybe, but that document is unlikely to change ever again.

> <html><head><title>Products</title>
> <script type="text/javascript" src="page_loader.js"></script>
> <noscript>Your JavaScript is turned off.  This may cause problems
> with the shopping cart.</noscript>

It was probably not allowed for just this reason your example exhibits. You're
trying to insert text into the head element, which is not allowed -- where
would it be shown?

Btw.: It's IMHO stupid to rely on JS in a shoppping environment.
Received on Monday, 20 October 2003 11:50:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:38 UTC