Bug Tracker

Modify

Ticket #1594 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

evalscripts() in .html() does not work the same in MSIE Safari and FF

Reported by: fil Owned by:
Priority: minor Milestone: 1.2.1
Component: core Version: 1.2
Keywords: evalscripts Cc:
Blocking: Blocked by:

Description

In my application (the "Crayons" plugin for SPIP), a script can be passed to the .html() method wrapped inside a <form>. The script is then not executed on IE6 nor Safari2, but is executed on FF2.

Test case included

Attachments

evalscripts.html Download (660 bytes) - added by fil 6 years ago.

Change History

Changed 6 years ago by fil

comment:1 Changed 6 years ago by diz

This is in fact the same bug as the one I just submitted:  http://dev.jquery.com/ticket/1598

<SCRIPT> elements that are not at the root of the inserted structure aren't executed when added to the page DOM. This worked in jQuery 1.1.3.1 but doesn't work anymore for 1.1.4 or 1.2!

It comes from an error in the jQuery domManip() method which seems only looks for the <SCRIPT> elements located at the root of the loaded HTML.

comment:2 Changed 6 years ago by fil

indeed it looks a lot like it is the same bug

comment:3 Changed 6 years ago by john

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

Fixed in SVN rev [3296].

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.