fix for IE7 and protocol agnostic urls #140

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@billtrik

On IE7 only, the <link href="//same_domain/stylesheets/site.css"> element
will trigger a Cross-Domain permission denied error.
The code that will trigger the error is inside ajax():
req.open( "GET", url, true );

So, inside ripCSS(), i added a check. If the href starts with // then it should manually add the window.location.protocol before the actual href.

Bug fixed

@billtrik

I did not push the minified versions as, because i use uglifyjs, the final minified code was pretty different (though working) from the previous version.

@scottjehl
Owner

Thanks! fixed in ab2c5f6

@scottjehl scottjehl closed this Nov 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment