aboutsummaryrefslogtreecommitdiffstats
path: root/gwtquery-core
diff options
context:
space:
mode:
authorManolo Carrasco <manolo@apache.org>2012-07-17 05:36:37 +0000
committerManolo Carrasco <manolo@apache.org>2012-07-17 05:36:37 +0000
commit23cfaacc3350c9663a149b1401e6e4b388640dfa (patch)
treeb585966b80be7f0fa01bb3af4d0cf3487c3aae26 /gwtquery-core
parent3db4377ec292465e994863a72e51355647a8b85e (diff)
downloadgwtquery-23cfaacc3350c9663a149b1401e6e4b388640dfa.tar.gz
gwtquery-23cfaacc3350c9663a149b1401e6e4b388640dfa.zip
reduce permutations when using QueryMin.gwt.xml
Diffstat (limited to 'gwtquery-core')
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/QueryMin.gwt.xml11
1 files changed, 10 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/QueryMin.gwt.xml b/gwtquery-core/src/main/java/com/google/gwt/query/QueryMin.gwt.xml
index d5eba98d..9678a7ee 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/QueryMin.gwt.xml
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/QueryMin.gwt.xml
@@ -27,11 +27,20 @@
<define-property name="selectorCapability" values="native,js"/>
<property-provider name="selectorCapability">
<![CDATA[
- return document.location.href.indexOf("_force_no_native") < 0 &&
+ return !/_force_no_native/.test(document.location.search) &&
document.querySelectorAll &&
/native/.test(String(document.querySelectorAll)) ? "native" : "js";
]]>
</property-provider>
+
+ <set-property name="selectorCapability" value="js" >
+ <when-property-is name="user.agent" value="ie6" />
+ </set-property>
+ <set-property name="selectorCapability" value="native" >
+ <any>
+ <when-property-is name="user.agent" value="safari" />
+ </any>
+ </set-property>
<!-- Selector Engines -->
<replace-with class="com.google.gwt.query.client.impl.SelectorEngineNativeMin">