Take a look at this code snippet:
When you try to run the
alert(document.styleSheets[x].cssRules.length)
, it results in a "security exception." Do you know of any workarounds for this issue? I'm curious because there are CSS classes that utilize this feature to identify if the CSS document has been loaded.
Additionally, is the security exception considered correct behavior and does it comply with standards?