Bug Tracker

Modify

Ticket #5668 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Scripts are not being disabled in the loaded page

Reported by: Motty Owned by:
Priority: major Milestone: 1.4
Component: ajax Version: 1.4a1
Keywords: script load Cc:
Blocking: Blocked by:

Description

While loading content from another page, if the <script> tag contains any capital letters, the script will execute while loading. Even if the script is outside the target content. I posted a detailed description (as Fudgey) at Stackoverflow ( http://stackoverflow.com/questions/1821047/very-interesting-jquery-load-behavior-a-bug-or-solution) and it includes a fix by user Jitter.

In jQuery 1.3.2 line 3272 should look like this:

.append(res.responseText.replace(/<script(.|\s)*?\/script>/gi, ""))

all that was added was the case insensitive flag.

Change History

comment:1 Changed 3 years ago by dmethvin

  • need changed from Review to Commit

comment:2 Changed 3 years ago by john

  • Status changed from new to closed
  • Version changed from 1.3.2 to 1.4a1
  • Resolution set to fixed

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.