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

Re: Bug in the validator - does not ignore JavaScript that has <a

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 01 Jul 2005 03:02:19 +0200
To: Ármann <armannragnar@simnet.is>
Cc: <www-validator-css@w3.org>
Message-ID: <42ce955e.218699031@smtp.bjoern.hoehrmann.de>

* Ármann wrote:
>Well, I was going to validate my CSS, and also had JavaScript code.
>I got the error that I should first validate my XML, and that I had
>a <a that did not close. The problem was that <a was not a link, but
>code inside the JavaScript tag.

In XHTML, which you appear to be using, you must escape special
characters like & and < even in <script> elements. The XHTML 1.0
Recommendation recommends to use external scripts if you have
such characters in the script and want to serve the document to
older browsers.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 1 July 2005 01:02:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:41 UTC