Bug Tracker

Modify

Ticket #7586 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

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:1 Changed 2 years ago by jitter

  • Owner set to softlion
  • Status changed from new to pending

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

Last edited 2 years ago by jitter (previous) (diff)

comment:2 Changed 2 years ago by jitter

  • Owner softlion deleted
  • Status changed from pending to new

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/

comment:5 Changed 2 years ago by jitter

  • Priority changed from undecided to high
  • Resolution set to duplicate
  • Status changed from reopened to closed
  • Component changed from unfiled to manipulation

comment:6 Changed 2 years ago by jitter

Duplicate of #6180.

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.