Skip to main content

Bug Tracker

Side navigation

#7586 closed bug (duplicate)

Opened November 21, 2010 07:18PM UTC

Closed December 13, 2010 01:14AM UTC

Last modified December 13, 2010 01:14AM UTC

jQuery.ajax removes script whose type is not text/javascript from html response

Reported by: softlion Owned by:
Priority: high Milestone: 1.5
Component: manipulation Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

When using jQuery.ajax to retreive html, if this html contains a script tag, the tag is removed from the html when it is inserted in the DOM.

This should not happen is the type of the script is not "text/javascript".

Example: FBML scripts from facebook (script type="text/fbml")

Attachments (0)
Change History (6)

Changed November 21, 2010 09:19PM UTC by jitter comment:1

_comment0: Thanks for taking the time to contribute to the jQuery project by writing a bug report! \ \ Please submit a reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net. So that we can investigate this issue further. \ \ ----- ----- \ \ [http://docs.jquery.com/How_to_Report_Bugs How to report bugs]1290374753661197
owner: → softlion
status: newpending

Thanks for taking the time to contribute to the jQuery project by writing a bug report!

Please submit a reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net. So that we can investigate this issue further as some quick tests show this working for me test case.

----- -----

How to report bugs

Changed December 01, 2010 02:37PM UTC by jitter comment:2

owner: softlion
status: pendingnew

Changed December 01, 2010 02:37PM UTC by jitter comment:3

resolution: → worksforme
status: newclosed

No test case was provided. Closing. Feel free to reopen with a reproducible test case.

Changed December 09, 2010 06:23AM UTC by jdsharp comment:4

resolution: worksforme
status: closedreopened

Test case created: http://jsfiddle.net/E5Ygp/

Changed December 13, 2010 01:14AM UTC by jitter comment:5

component: unfiledmanipulation
priority: undecidedhigh
resolution: → duplicate
status: reopenedclosed

Changed December 13, 2010 01:14AM UTC by jitter comment:6

Duplicate of #6180.