W3C home > Mailing lists > Public > www-validator@w3.org > February 2005

noscript validation issue

From: <paul@webotech.co.uk>
Date: Thu, 03 Feb 2005 19:01:15 +0000
To: www-validator@w3.org
Message-Id: <20050203190115.8CEB85C06D@ws5.spacesurfer.com>

If I validate this code: 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<META NAME="author" CONTENT="Paul Mackinlay, Web Orientated Technologies, 
info@webotech.co.uk">
</head>
<body>
<p>Your currency is set to
<script language="javascript" type="text/javascript">
<!--
document.write('<b>USD<\/b>');
//-->
</script>
<noscript><b>USD</b></noscript>
..</p>
</body>
</html> 

I get this error:
#Line 17, column 4: end tag for element "P" which is not open 

However, the code is HTML4.01 compliant if I remove 
<noscript><b>USD</b></noscript> 

As far as I am aware I am allowed to embed <noscript> tags within <p> tags, 
in which case there may be a bug in the validator. If I am wrong can 
somebody show me the relevent W3C documentation. 

Thanks, 

Paul 

-- 
Paul Mackinlay (PhD, MEng)
Web Orientated Technologies http://www.webotech.co.uk/
New Media Marketing.SMS.Addressing Software.Development.Design
Tel: +44(0)7050 699971 Fax: +44(0)7050 699972 paul@webotech.co.uk
Received on Friday, 4 February 2005 08:03:27 GMT

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