From 0b20a5ad24cfc0c18bae8ece678fb959e44c4371 Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Tue, 11 May 2010 10:53:20 +0000 Subject: [PATCH] ignore case when comparing property name exceptions --- .../com/google/gwt/query/client/impl/DocumentStyleImpl.java | 6 +++--- .../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; -- 2.39.5