You don't actually need to get rid of it. The html comment tags inside
the javascript block will only be applied by browsers that don't
understand the <script> tag (eg really old IE or Netscape, text only
browsers etc...). It's actually considered good form to have them in.
David
Randy Simon wrote:
Hi,
I just switched from the RI to myfaces. I’ve noticed that all my
javascript blocks get wrapped in HTML-style comments.
For example,
<script type=”text/javascript”>
var foo = ‘bar’;
</script>
Becomes
<script type=”text/javascript”>
<!--
var foo = ‘bar’;
//-->
</script>
Is there anyway to disable this?
Thanks,
Randy
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or
legally privileged, and is intended solely for the use of the
individual or entity named in this message. If you are not the
intended recipient, and have received this message in error, please
immediately return this by email and then delete it.
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.10/1091 - Release Date: 24/10/2007 2:31 PM