[Pkg-javascript-commits] [dojo] 09/13: Fixes #8775 on the 1.3.x branch. I expect this to break again.

David Prévot taffit at moszumanska.debian.org
Mon May 11 20:12:26 UTC 2015


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

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

commit 7844193e32021cbb0ce88ec7ade68edb6644a216
Author: Alex Russell <slightlyoff at chromium.org>
Date:   Thu Jul 9 22:04:26 2009 +0000

    Fixes #8775 on the 1.3.x branch. I expect this to break again.
    
    !strict
    
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.3/dojo@18756 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 _base/query.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/_base/query.js b/_base/query.js
index 9efdc6b..6cb3286 100644
--- a/_base/query.js
+++ b/_base/query.js
@@ -140,7 +140,8 @@ if(typeof dojo != "undefined"){
 	var isString = 		d.isString;
 
 	var getDoc = function(){ return d.doc; };
-	var cssCaseBug = (d.isWebKit && ((getDoc().compatMode) == "BackCompat"));
+	// NOTE(alex): the spec is idiotic. CSS queries should ALWAYS be case-sensitive, but nooooooo
+	var cssCaseBug = ((d.isWebKit||d.isMozilla) && ((getDoc().compatMode) == "BackCompat"));
 
 	////////////////////////////////////////////////////////////////////////
 	// Global utilities
@@ -1009,7 +1010,6 @@ if(typeof dojo != "undefined"){
 				// isAlien check. Workaround for Prototype.js being totally evil/dumb.
 				/\{\s*\[native code\]\s*\}/.test(String(ecs)) && 
 				query.classes.length &&
-				// WebKit bug where quirks-mode docs select by class w/o case sensitivity
 				!cssCaseBug
 			){
 				// it's a class-based query and we've got a fast way to run it.

-- 
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