X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..05ce1c11e98b33f14ddee184493bd5a60dc947e2:/src/util/CSS.js?ds=inline diff --git a/src/util/CSS.js b/src/util/CSS.js index 44b1d260..fa13d412 100644 --- a/src/util/CSS.js +++ b/src/util/CSS.js @@ -1,5 +1,5 @@ /*! - * Ext JS Library 3.0.0 + * Ext JS Library 3.0.3 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license @@ -91,7 +91,7 @@ Ext.util.CSS = function(){ try{// try catch for cross domain access issue var ssRules = ss.cssRules || ss.rules; for(var j = ssRules.length-1; j >= 0; --j){ - rules[ssRules[j].selectorText] = ssRules[j]; + rules[ssRules[j].selectorText.toLowerCase()] = ssRules[j]; } }catch(e){} }, @@ -123,11 +123,11 @@ Ext.util.CSS = function(){ getRule : function(selector, refreshCache){ var rs = this.getRules(refreshCache); if(!Ext.isArray(selector)){ - return rs[selector]; + return rs[selector.toLowerCase()]; } for(var i = 0; i < selector.length; i++){ if(rs[selector[i]]){ - return rs[selector[i]]; + return rs[selector[i].toLowerCase()]; } } return null;