#86 bug
Evil.2000

evalScripts and commented JS produeces error

Reported by Evil.2000 | May 8th, 2008 @ 06:27 PM | in 1.6.1

If one page loades a second page with

Ajax.Updater(
     "content_id",
     "document.html",
     {evalScripts: true}
);

and you have the following script in document.html

<script type="text/javascript">
<!--
	your_script_code();
//-->
</script>

then the IE produces a JavaScript syntax error in prototype.js on line 597 (see image attached).

Firefox and Opera are executing the script without problems.

If the comments are removed the script will work in IE too.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins