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

Doesn't work for cross-domain CSS #54

Open thany opened 11 years ago

thany commented 11 years ago

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.

gucong3000 commented 10 years ago

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