Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Causes mixed content warnings on secure pages. #60

Open
georeith opened this issue Feb 19, 2015 · 1 comment
Open

Causes mixed content warnings on secure pages. #60

georeith opened this issue Feb 19, 2015 · 1 comment

Comments

@georeith
Copy link

See: http://support.microsoft.com/kb/925014

When performing removeChild() on an element with background-image set it will trigger a false mixed content warning. You need to remove the background-image first or use outerHtml = ''.

@seanadkinson
Copy link

Fixed this issue for IE7 by replacing this line with the following:

elementStyle.backgroundImage = "none";

The comment above it says:

// set inline background image to the transparent spacer gif
// this allows JavaScript to later set it to "none"

But I didn't see any issues in IE7 with my change. It may not work for IE6 or something, but I didn't need to worry about that since we don't support it.

Hope this helps someone else that spent a full day tracking this down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants