I'm trying to run the sample code from the Firefox Gecko DOM documentation
for styleSheets and cssRules with a view ot incorporating it into a script
of my own but GreaseMonkey reports a "Security error"  pointing at the
line I've marked in this extract whenever the test script runs.

// extracted from the following page 
https://developer.mozilla.org/en/Gecko_DOM_Reference/Examples#Example_4:_Using_Stylesheets

ss = document.styleSheets;

for (i = 0; i < ss.length; i++) {
   for (j = 0; j < ss[i].cssRules.length; j++) { // <- Security error reported 
on this line
     GM_log("Rule: " + ss[i].cssRules[j].selectorText);
   }
}

// end of extract

Any ideas how to solve this issue?

Regards, Trevor

<>< Re: deemed!


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to