This project is archived and is in readonly mode.

#641 ✓wontfix

$exec (stripScripts) fails in IE on <script> with cdata comments

Reported by cfenzo | April 20th, 2009 @ 12:51 PM | in 2.0 (closed)

window.execScript in IE doesn't cope well with cdata comments (or any pure html in the script it tries to execute).

A small change to the $exec function removes the issue with the cdata comments:

Replace his line: window.execScript(text); With this line: window.execScript(text.replace(/[<]!--/,"").replace(/\/\/-->/, ""));

Or maybe this should be done in stripScripts(true) instead.

Comments and changes to this ticket

Create your profile

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

Shared Ticket Bins

People watching this ticket