Modify ↓
Ticket #7586 (closed bug: duplicate)
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: | ||
| Blocking: | Blocked by: |
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")
Change History
comment:3 Changed 2 years ago by jitter
- Status changed from new to closed
- Resolution set to worksforme
No test case was provided. Closing. Feel free to reopen with a reproducible test case.
comment:4 Changed 2 years ago by jdsharp
- Status changed from closed to reopened
- Resolution worksforme deleted
Test case created: http://jsfiddle.net/E5Ygp/
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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