Skip to main content

Bug Tracker

Side navigation

#5668 closed bug (fixed)

Opened December 16, 2009 06:01PM UTC

Closed December 17, 2009 08:07PM UTC

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:
Blocked by: Blocking:
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.

Attachments (0)
Change History (2)

Changed December 17, 2009 02:15AM UTC by dmethvin comment:1

Changed December 17, 2009 08:07PM UTC by john comment:2

resolution: → fixed
status: newclosed
version: 1.3.21.4a1