W3C home > Mailing lists > Public > www-validator@w3.org > July 2009

RE: Problems in validating '<noscript>'

From: John Fairweather <johnfairweather@ntlworld.com>
Date: Sat, 18 Jul 2009 09:14:16 +0100
To: "'Jukka K. Korpela'" <jkorpela@cs.tut.fi>, <www-validator@w3.org>, "'Tatham Oddie'" <tatham@oddie.com.au>
Message-ID: <006001ca077f$bf401750$3dc045f0$@com>
Thanks, I will try your solutions, but in the meantime here is the URL - http://www.surreytt.co.uk/temp/Enter_STTA.html.

Note - Statcounter code is automatically generated from statcounter.com.


-----Original Message-----
From: www-validator-request@w3.org [mailto:www-validator-request@w3.org] On Behalf Of Jukka K. Korpela
Sent: 18 July 2009 08:21
To: John Fairweather; www-validator@w3.org
Subject: Re: Problems in validating '<noscript>'

John Fairweather wrote:

> I'm trying to W3C validate the following code segment,

Validation, by definition, applies to documents, not snippets ("segments"). 
When you ask about a problem in validation, you should always post a URL of 
the problem document, for this reason and many other reasons.

> but the
> validation says that '<noscript>' is an error

It's also useful to quote (e.g. using copy & paste) the exact error message 
(though we can easily see it if you provide the URL).

If I feed your "code segment" to the W3C validator, it says essentially the 

Line 9, Column 6: document type does not allow element "BODY" here
Line 33, Column 7: end tag for "HTML" which is not finished

That's somewhat cryptic, admittedly (the real problem is the lack of <title> 
element), but I don't see <noscript> mentioned there - do you? But here's my 
guess: the error message you actually get is

document type does not allow element "NOSCRIPT" here; missing one of 
"APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag

which would be caused by an attempt at putting a <noscript> element inside 
text level markup such as <font>, <span>, or <a>.

Yucca, http://www.cs.tut.fi/~jkorpela/ 
Received on Saturday, 18 July 2009 08:15:27 UTC

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