]> source.dussan.org Git - gwtquery.git/commitdiff
ignore case when comparing property name exceptions
authorManolo Carrasco <manolo@apache.org>
Tue, 11 May 2010 10:53:20 +0000 (10:53 +0000)
committerManolo Carrasco <manolo@apache.org>
Tue, 11 May 2010 10:53:20 +0000 (10:53 +0000)
gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java
gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java

index 4f8d44a682a5a74ee08e76ed68e16a4965a339bd..64c2c0f5e756c0e6946743088619fb59d641007c 100644 (file)
@@ -27,16 +27,16 @@ public class DocumentStyleImpl {
   public String getCurrentStyle(Element elem, String name) {
     name = hyphenize(name);
     String propVal = getComputedStyle(elem, name, null);
-    if ("opacity".equals(name)) {
+    if ("opacity".equalsIgnoreCase(name)) {
       propVal = SelectorEngine.or(propVal, "1");
     }
     return propVal;
   }
 
   public String getPropertyName(String name) {
-    if ("float".equals(name)) {
+    if ("float".equalsIgnoreCase(name)) {
       return "cssFloat";
-    } else if ("for".equals(name)) {
+    } else if ("for".equalsIgnoreCase(name)) {
       return "htmlFor";
     }
     return GQuery.camelize(name);
index c87c9e837c6153a5ec6831ab41a66956aae0265c..0fa3c3cdf8339b4d241329290cf20c14bb7ae283 100644 (file)
@@ -26,7 +26,7 @@ public class DocumentStyleImplIE extends DocumentStyleImpl {
   public String getCurrentStyle(Element elem, String name) {
     name = hyphenize(name);
     String propVal = getComputedStyle(elem, name, null);
-    if ("opacity".equals(name)) {
+    if ("opacity".equalsIgnoreCase(name)) {
       propVal = SelectorEngine.or(propVal, "1");
     }
     return propVal;