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

Re: [VE][137] Error Message Feedback - validator not ignoring <script> block

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 20 Dec 2005 21:06:40 +0100
To: Ben VanDenburg <bennyhur@gmail.com>
Cc: www-validator@w3.org
Message-ID: <c2pgq1lf0i3gcbqk0mkq615eatehosdrev@hive.bjoern.hoehrmann.de>

* Ben VanDenburg wrote:
>Validating http://www.people.virginia.edu/~bv4n/sms.php
>Error [137]: "invalid comment declaration: found character X outside
>comment but inside comment declaration"
>
>The "error" was within a javascript block, character found was "--"
>(variable decrementer), but interperter found it as to be and of
>comment, which it was not. the end of the comment is directly before
>the closing script tag.

You have <!-- ... -- ... -->; this is not allowed in XHTML. Also note
that putting script content in comments is a bad idea, since, well, the
browser won't execute the script as it is commented out. Please see e.g.
http://esw.w3.org/topic/ValidationProblems for an elaborate description
about the magical <script> element in HTML. In XHTML, there is no magic
involved.
-- 
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 Tuesday, 20 December 2005 20:06:27 GMT

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