title: Permission Denied calling javascript function
body: <p>I am attempting to make <a href="https://code.google.com/p/ie7-js/" rel="nofollow">ie7-js</a> work with my wordpress installation. After reading about this library it seems like it is a great solution to making my website more compatible with older versions of IE more specifically IE8. It may seem odd to try and still support an old browser like that but I have noticed that several hundred visitors a month are visiting our site using browsers as old as IE6. A majority of our users are elderly and still using Windows XP. Now on to the problem.</p>
  
  <p>I am running a copy of the Windows XP virtual machine with IE8 from <a href="https://modern.ie/en-us" rel="nofollow">modern.ie</a> I have followed the instructions on the library code page on how to include the file. I am trying to get the Specific IE9.js file to work. When I access the page in IE8 I get the error</p>
  
  <p><code>permission denied: line 850 character 37</code></p>
  
  <p>I have tracked it down to the line below:</p>
  
  <p><code>for (var i = 0, imported; i &lt; styleSheet.imports.length; i++)</code></p>
  
  <p>from this function:</p>
  
  <pre><code>function getCSSText(styleSheet, path, media, level) {
        var cssText = "";
        if (!level) {
          media = toSimpleMedia(styleSheet.media);
          level = 0;
        }
        if (media === "none") {
          styleSheet.disabled = true;
          return "";
        }
        if (media === "all" || media === self.media) {
          // IE only allows importing style sheets three levels deep.
          // it will crash if you try to access a level below this
          try {
            var canAcess = !!styleSheet.cssText;
          } catch (exe) {}
          if (level &lt; 3 &amp;&amp; canAcess) {
            var hrefs = styleSheet.cssText.match(IMPORTS);
            // loop through imported style sheets
            for (var i = 0, imported; i &lt; styleSheet.imports.length; i++) {
              var imported = styleSheet.imports[i];
              var href = styleSheet._href || styleSheet.href;
              imported._href = hrefs[i].replace(TRIM_IMPORTS, "");
              // call this function recursively to get all imported style sheets
              cssText += getCSSText(imported, getPath(href, path), media, level + 1);
            }
          }
          // retrieve inline style or load an external style sheet
          cssText += encode(styleSheet.href ? loadStyleSheet(styleSheet, path) : styleSheet.owningElement._cssText);
          cssText = parseMedia(cssText, self.media);
        }
        return cssText;
      };
  </code></pre>
  
  <p>Upon researching to see if anyone else has had the same issue I did find <a href="https://code.google.com/p/ie7-js/issues/detail?id=59" rel="nofollow">posts</a> regarding it but none had solutions to them. I have been trying to sort this out for a few hours now only to be banging my head against the desk. Does anyone have possible solutions or things to check next? I have tried changing file permissions to 777 but that does not seem to work either.</p>