Skip to main content

Bug Tracker

Side navigation

#6587 closed bug (patchwelcome)

Opened May 20, 2010 05:24AM UTC

Closed November 19, 2010 07:33AM UTC

Last modified May 27, 2013 05:07PM UTC

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:
Blocked by: Blocking:
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 (1)
  • bug.htm (0.3 KB) - added by wesleysmith May 20, 2010 05:26AM UTC.

    Test case

Change History (6)

Changed June 01, 2010 06:09PM UTC by ed.eustace comment:1

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 );

Changed June 12, 2010 02:57AM UTC by dmethvin comment:2

component: unfiledmanipulation

Changed November 12, 2010 02:40AM UTC by snover comment:3

milestone: 1.4.3

Resetting milestone to future.

Changed November 19, 2010 07:33AM UTC by snover comment:4

priority: → undecided
resolution: → patchwelcome
status: newclosed

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.

Changed January 25, 2011 11:37PM UTC by danny.j.cohn@gmail.com comment:5

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.

Changed May 27, 2013 05:07PM UTC by dmethvin comment:6

#13947 is a duplicate of this ticket.