Bug Tracker

Modify

Ticket #6587 (closed bug: patchwelcome)

Opened 3 years ago

Last modified 15 months ago

append function causes mixed content warning on IE when on https page and content to append contains relative link

Reported by: wesleysmith Owned by:
Priority: undecided Milestone:
Component: manipulation Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

If the append function is called from a page loaded via https on IE (I tested IE7), and the text to append contains a relative link, then IE will show a mixed content warning (Page Contains Both Secure and Nonsecure Items)

I traced this for a while and it seems to be triggered when the content is appended into the document fragment near the end of jquery's clean function.

I'm sure that this is a IE bug, but perhaps there is a workaround?

This issue is seen with jquery 1.4.2, but not seen with jquery version 1.3.2

Attachments

bug.htm Download (345 bytes) - added by wesleysmith 3 years ago.
Test case

Change History

Changed 3 years ago by wesleysmith

Test case

comment:1 Changed 3 years ago by ed.eustace

Hi, I had this happen when trying to render a <object><embed></embed></object> for a swf document.

The workaround we used was to add raw html to the element:

var objectHtml = '<object><embed src="mySwf.swf"></embed></object>'; 
div.innerHtml( objectHtml );

comment:2 Changed 3 years ago by dmethvin

  • Component changed from unfiled to manipulation

comment:3 Changed 3 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:4 Changed 3 years ago by snover

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to patchwelcome

This is a corner case we are not going to look at since a workaround is available and it is unlikely to be discovered by many people. If you want to write a patch that fixes the issue, we would be happy to consider it.

comment:5 Changed 2 years ago by danny.j.cohn@…

This is not a good workaround. If jQuery isn't used to update the page, it is unaware of the elements that were removed and jQuery.cache does not get cleaned up.

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.