[Pkg-javascript-commits] [dojo] 21/32: Backport acme selector fix for IE10 quirks mode to 1.6, fixes #16418 on 1.6 branch !strict

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:08 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.6.2
in repository dojo.

commit 863245b101cbab0fe8b7ee48b16e33dda8147a6b
Author: Bill Keese <bill at dojotoolkit.org>
Date:   Sat Dec 22 23:21:52 2012 +0000

    Backport acme selector fix for IE10 quirks mode to 1.6, fixes #16418 on 1.6 branch !strict
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.6/dojo@30250 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 _base/query.js         | 2 +-
 tests/_base/query.html | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/_base/query.js b/_base/query.js
index 0f3d55f..29cf588 100644
--- a/_base/query.js
+++ b/_base/query.js
@@ -657,7 +657,7 @@ var defineQuery= function(d){
 		}
 	};
 
-	var defaultGetter = (d.isIE < 9 || (dojo.isIE && dojo.isQuirks)) ? function(cond){
+	var defaultGetter = (d.isIE < 9 || d.isIE == 9 && d.isQuirks) ? function(cond){
 		var clc = cond.toLowerCase();
 		if(clc == "class"){ cond = "className"; }
 		return function(elem){
diff --git a/tests/_base/query.html b/tests/_base/query.html
index 86bc09b..f728a20 100644
--- a/tests/_base/query.html
+++ b/tests/_base/query.html
@@ -53,7 +53,8 @@
 
 						"doh.is(2, (dojo.query('#baz,#foo,#t')).length);",
 
-						"doh.is(1, dojo.query('.fooBar').length);",
+						// case sensitivity behavior is different on IE10, and not worth normalizing
+						"dojo.isIE >= 10 || doh.is(1, dojo.query('.fooBar').length);",
 
 						// syntactic equivalents
 						"doh.is(12, (dojo.query('#t > *')).length);",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list