Forum Moderators: open

Message Too Old, No Replies

validate javascript?

         

FiRe

4:02 pm on Oct 14, 2006 (gmt 0)

10+ Year Member



I have an XHTML 1.0 Transitional document and an onMouseOver/onMouseOut event which unfortunately causes the page not to validate correctly in the W3C validator. Is there anyway around this?

FiRe

4:04 pm on Oct 14, 2006 (gmt 0)

10+ Year Member



never mind, I didn't realise it was case sensitive
* rolls eyes *

rocknbil

6:59 pm on Oct 14, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



While you're at it, be sure to escape any slashes, this will cause validation to fail too:

document.write('<strong>Hello World<\/strong>');