I am running a javascript environment at x.y.com, but I need to read to content of a css file at a.b.com. Is there any way to make an ajax call to load the content of this file as a text string? Does doing this violate the "spirit" of the Same-Origin policy on various browsers? Basically, I'm trying to compile a list of ALL the CSS Rules affecting a page, even those loaded from cross-origin external css files (whose rules are not shown in document.styleSheets[x].cssRules[]
).
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
|
||||
add comment |
document.styleSheets
when loaded the normal way? That would be strange. – Pekka 웃 Jan 8 at 19:15