Skip to content

HTTPS content security warning for CSS in IE7 #101

@markhealey

Description

@markhealey

From Anders R:

In _loadApps here’s the new code I added to fix the issue.

// load styles
var stylesFragment = null;
var useCreateStyleSheet = !!document.createStyleSheet;
jQuery.each(styles, function(i, e) {
        if (useCreateStyleSheet) {
                document.createStyleSheet(e); 
        } else {
                stylesFragment = stylesFragment || [];
                stylesFragment.push('<link rel="stylesheet" type="text/css" href="' + e + '"/>');
        }
});

if (stylesFragment) {
        jQuery('head').append(stylesFragment.join('')); //this causes ie7 to show security message. fix using document.createStyleSheet }

IE7 is not included in F2's official browser support, however, this change appears to be minor therefore I feel F2 should address it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions