diff options
author | Manolo Carrasco <manolo@apache.org> | 2010-05-11 10:53:20 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2010-05-11 10:53:20 +0000 |
commit | 0b20a5ad24cfc0c18bae8ece678fb959e44c4371 (patch) | |
tree | c735995bb442de27aacc6510b959d194a878b63e /gwtquery-core | |
parent | 34db71262ebf9cb9b6abd243465767ca14a30883 (diff) | |
download | gwtquery-0b20a5ad24cfc0c18bae8ece678fb959e44c4371.tar.gz gwtquery-0b20a5ad24cfc0c18bae8ece678fb959e44c4371.zip |
ignore case when comparing property name exceptions
Diffstat (limited to 'gwtquery-core')
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java | 6 | ||||
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java index 4f8d44a6..64c2c0f5 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImpl.java @@ -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); diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java index c87c9e83..0fa3c3cd 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java @@ -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; |