keithclark / selectivizr

selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8.
1.71k stars 246 forks source link

IE8 error #73

Open codeofsumit opened 11 years ago

codeofsumit commented 11 years ago

Getting an error "access denied"

selectivizr.js, Line 389

tested on IE10 (IE8 mode), Windows 7, jQuery 1.10.3, latest selectivizr (downloaded today)

// --[ loadStyleSheet() ]-----------------------------------------------
    function loadStyleSheet( url ) {
        xhr.open("GET", url, false); // This is the line that causes the error
        xhr.send();
        return (xhr.status==200) ? xhr.responseText : EMPTY_STRING; 
    };

Probably because i loaded the script locally, not sure though.

htmlr commented 10 years ago

I also get and Im not running it locally. My site is running over HTTPs

KieranGreenwood commented 7 years ago

What is the URL? When you say locally, is it http://localhost/... or file://...

From the homepage:

Style sheets MUST be hosted on the same domain as the page due to browser security restrictions. Likewise, style sheets loaded using the file: protocol will not work.