RE: Problems in validating '<noscript>'

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.

Regards,
 
John

-----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 
following:

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