Skip to content

.cssText throws error in Internet Explorer 9 #8

@tjwoon

Description

@tjwoon

This line does not seem to work on Internet Explorer 9. On the other hand, the "Others" browsers codepath works fine...

        if (isIeStylesheet) {
            containerDomElem.styleSheet.cssText = css;
        } else {
            container.text(css); //Others
        }

When using the IE codepath, a Javascript Error is thrown and the IE console displays Error: Invalid argument.

I am calling this library like so:

$.injectCSS jss,
                media: media
                containerName: "menuFloatResponsive_#{i}"

Where containerName is not an existing element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions