W3C home > Mailing lists > Public > www-validator@w3.org > October 2007

Re: Validator failure 20-Oct-2007 : ...is reading javascript strings and checking them

From: Drake Wilson <drake@begriffli.ch>
Date: Sat, 20 Oct 2007 11:55:38 -0500
To: SAMUEL MARCHANT <nicephotog@yahoo.com.au>
Cc: www-validator@w3.org
Message-ID: <20071020165538.GA26495@drache.begriffli.ch>

Quoth SAMUEL MARCHANT <nicephotog@yahoo.com.au>, on 2007-10-20 18:20:08 +1000:
> My page uses Dynamic HTML, the validator should not be attempting to read the
> javascript strings, as far as i know(and was accepted in your previous validator
> version) onmouseover= and onmouseout= are legal attributes of tr.

onmouseover and onmouseout are valid attributes for XHTML 1.0
Transitional; onMouseover and onMouseout are not.

>From the validator output, emphasis mine:

  How to fix: check the spelling --> and case <-- of the element and attribute,
  --> (Remember XHTML is all lower-case) <--

As far as "attempting to read the JavaScript strings", yes, it does
treat stuff inside <script>..</script> as text that needs to be
encoded with entities if it contains stuff that you don't want to
interpret as tags.  This is exactly what the XML spec says on the tin.
If you don't like that, use external script files.  See <<
http://www.htmlhelp.com/tools/validator/problems.html#script >>.

   ---> Drake Wilson
Received on Saturday, 20 October 2007 16:56:15 GMT

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