W3C home > Mailing lists > Public > www-validator@w3.org > August 2004

Re: Java script and validator... not the common endtag/backslash error

From: Jari Porola <jariporola@yahoo.com>
Date: Sun, 22 Aug 2004 02:40:51 -0700 (PDT)
Message-ID: <20040822094051.15077.qmail@web21527.mail.yahoo.com>
To: "Jukka K. Korpela" <jkorpela@cs.tut.fi>
Cc: www-validator@w3.org

> you will get just a syntax error on IE, which does
> not recognize
> the <![CDATA[ construct, and therefore doesn't read
> the
> JavaScript code properly.
> 
It works on IE if I write it this way:
<script type="text/javascript">
//<![CDATA[
  document.write('hello');
//]]>
</script>

and it also validates. I tested it with netscape too
and no problems.



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
Received on Sunday, 22 August 2004 09:40:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:08 UTC