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

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