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

* Á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