aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2010-05-11 10:53:20 +0000
committerManolo Carrasco <manolo@apache.org>2010-05-11 10:53:20 +0000
commit0b20a5ad24cfc0c18bae8ece678fb959e44c4371 (patch)
treec735995bb442de27aacc6510b959d194a878b63e /gwtquery-core
parent34db71262ebf9cb9b6abd243465767ca14a30883 (diff)
downloadgwtquery-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.java6
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/client/impl/DocumentStyleImplIE.java2
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;