Bug Tracker

Modify

Ticket #171 (closed bug: worksforme)

Opened 7 years ago

Last modified 6 years ago

IE Eval Context

Reported by: john Owned by:
Priority: major Milestone:
Component: ajax Version:
Keywords: Cc:
Blocking: Blocked by:

Description

That does the trick. In jquery svn, we need to change the following lines: Line number 4910:

eval.call( window, this.text
this.textContent this.innerHTML "" );

should be changed to

{var src=window, this.text
this.textContent this.innerHTML "";

window.evalScript?window.evalScript(src):eval.apply(window,src);}

Unfortunately this does not work:

(window.evalScript?window.evalScript:eval).apply(window,this.text
this.textContent this.innerHTML "");

Similarly, line 5134:

if ( type == "script" ) eval.call( window, data );

should be changed to:

if ( type == "script" ) {window.evalScript?window.evalScript(data):eval.call( window, data );}

Change History

comment:1 Changed 7 years ago by joern

This should be execScript, not evalScript. Can someone provide a testcase for this?

comment:2 Changed 7 years ago by joern

  • Status changed from new to closed
  • Resolution set to worksforme

Can't verify this problem, the eval stuff seems to work fine in IE.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.