#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: | ||
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")
Change History (6)
comment:1 Changed 13 years ago by
Owner: | set to softlion |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
Owner: | softlion deleted |
---|---|
Status: | pending → new |
comment:3 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
No test case was provided. Closing. Feel free to reopen with a reproducible test case.
comment:4 Changed 12 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
Test case created: http://jsfiddle.net/E5Ygp/
comment:5 Changed 12 years ago by
Component: | unfiled → manipulation |
---|---|
Priority: | undecided → high |
Resolution: | → duplicate |
Status: | reopened → closed |
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