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

not walid?

From: (wrong string) čánek <M.Vicanek@seznam.cz>
Date: Fri, 19 Aug 2005 20:26:23 +0200 (CEST)
Cc:
To: www-validator@w3.org
Message-Id: <169.365-6479-2071407116-1124475983@seznam.cz>

Why is not this code valid?

<SCRIPT type="text/javascript">

	if (navigator.appName != 'Microsoft Internet Explorer')
	document.write ("<style>#menu LI.main A {display : block}</style>");

</SCRIPT>


Error Line 134 column 65: end tag for element "STYLE" which is not open.
....te ("<style>#menu LI.main A {display : block}</style>");
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem. 

If this error occured in a script section of your document, you should probably read this FAQ entry. 
 
Received on Saturday, 20 August 2005 08:37:58 GMT

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