W3C home > Mailing lists > Public > www-validator@w3.org > December 2001

Re: BUG report for the HTML Validator

From: Nick Kew <nick@webthing.com>
Date: Mon, 3 Dec 2001 01:56:45 +0000 (GMT)
To: Brent Boyer <brentboyer@hotmail.com>
cc: <www-validator@w3.org>
Message-ID: <20011203015123.D1215-100000@fenris.webthing.com>


On Sun, 2 Dec 2001, Brent Boyer wrote:

> I believe that there is a bug in the html validator if you have a noscript
> element in the head element.
>
> Consider the html page below, which yields 2 errors when I try and use the
> w3 validator (http://validator.w3.org/file-upload.html):
>
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
>
>
> <html>
>
> 	<head>
> 		<meta http-equiv="content-language" content="en-us">
> 		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
>
> 		<title>Validator Bug</title>
>
> 		<script type="text/javascript">
> 			<!--
> 			(something will go in here later...)
> 			// -->
> 		</script>
> 		<noscript>
> 			<p>Your browser does not support JavaScript, so this page will NOT
> work!</p>
> 		</noscript>
> 	</head>
>
> 	<body></body>
>
> </html>
>
>
>
> If you cut out the noscript element, then it validates perfectly fine.
>
> But I believe that it -should- validate, as I took that noscript element
> directly from the w3 html spec
> (http://www.w3.org/TR/html401/interact/scripts.html#h-18.3.1)!
>
> Please get back to me if you can confirm this bug!  (Or let me know that I
> made a brain dead mistake...)

<noscript> doesn't go in <head>!

I note your <noscript> contained a <p> element, which of course
doesn't go in <head> either.  Both <noscript> and <p> are for content
that will be presented directly to the user, which requires them
to go in a document BODY.

-- 
Nick Kew

Site Valet - the essential service for anyone with a website.
<URL:http://valet.webthing.com/>
Received on Sunday, 2 December 2001 20:56:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:00 GMT