selectivizr icon indicating copy to clipboard operation
selectivizr copied to clipboard

Doesn't work for cross-domain CSS

Open thany opened this issue 11 years ago • 1 comments

I know this is an ever-recurring issue in javascript. I don't know precisely how to solve it, so don't blame for that, please :)

Two things come to mind:

  1. XDomainRequest I believe it's called, but it requires a header to be sent at the other end, which is not always easy to configure, given enterprisey CMS'es.
  2. Stick a <script type=text/css> (yes, script, not style) in the DOM, load it up with the CSS and read it out. Maybe it will work, who knows.

What else can we do to work around this problem?

Personally, I don't need IE7 support that much. It would be a nice-to-have to support IE7, not a requirement.

thany avatar Mar 25 '13 16:03 thany

Try this fork. https://github.com/gucong3000/selectivizr

gucong3000 avatar Oct 30 '14 05:10 gucong3000