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

IE onload error [solved] #28

Open
john-warpdevelopment opened this issue Feb 14, 2012 · 3 comments
Open

IE onload error [solved] #28

john-warpdevelopment opened this issue Feb 14, 2012 · 3 comments

Comments

@john-warpdevelopment
Copy link

I was using IE9 compatibility mode to simulate IE7 (issue was also in IE8 document mode) included selectivizr v1.0.3b and on load it would error in the resolveUrl function on the line

if (url.charAt(0) == "/") {
            return getProtocolAndHost(contextUrl) + url;
        }

The error was in the if, the variable url was undefined. So without really knowing what that function does, i seem to have been able to solve the issue by adding this line near the top of the function

if (!url) return "";
@john-warpdevelopment
Copy link
Author

I should mention that the when I tried to check for the null in the if statement that my styling on my page was broken , so i suspect it might have something to do with less (http://lesscss.org/) at the time using v1.1.3.

@emirotin
Copy link

same here, have to monkey-patch it for now

@mlhDevelopment
Copy link

We had a similar issue, though v1.0.3b and pull request 34 fixed it (#34).

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

3 participants