Re: BUG report for the HTML Validator

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 UTC