Changeset 12371

Show
Ignore:
Timestamp:
02/11/08 13:32:57 (3 months ago)
Author:
alex
Message:

update dojo.query to defer to [node].querySelectorAll() if it's available. Fixes #5832. !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/_base/query.js

    r12311 r12371  
    10271027        var getQueryFunc = function(query){ 
    10281028                // return a cached version if one is available 
     1029                if(d.doc["querySelectorAll"]){ 
     1030                        return function(root){ 
     1031                                var r = root.querySelectorAll(query); 
     1032                                r.nozip = true; // skip expensive duplication checks and just wrap in a NodeList 
     1033                                return r; 
     1034                        }; 
     1035                } 
    10291036                if(_queryFuncCache[query]){ return _queryFuncCache[query]; } 
    10301037                if(0 > query.indexOf(",")){