Browse files

switched rules to cssRules for Firefox

  • Loading branch information...
1 parent bcecd67 commit a6a0503b1ff26c65a770bba2d29b20378690cfc3 @davatron5000 davatron5000 committed Aug 18, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 deCSS3.js
View
6 deCSS3.js
@@ -49,15 +49,15 @@ var deCSS3 = {
for(var i=0; i < document.styleSheets.length; i++) {
var stylesheet = document.styleSheets[i];
- if(stylesheet.rules) {
- var numRules = stylesheet.rules.length;
+ if(stylesheet.cssRules) {
+ var numRules = stylesheet.cssRules.length;
var rulesToDelete = [];
// -- loop each rule
for(var j=0; j < numRules; j++) {
var newRule = "";
- var currentRule = stylesheet.rules[j];
+ var currentRule = stylesheet.cssRules[j];
var currentRuleText = currentRule.cssText;
var found = currentRuleText.match(/\@media|column-count|rgba|hsla|linear-gradient/g);

0 comments on commit a6a0503

Please sign in to comment.