Bug Tracker

Ticket #5304: 5304.patch

File 5304.patch, 829 bytes (added by ecmanaut, 10 years ago)

Patch towards trunk/jquery/src/selector.js (r6586) fixing the issue

  • .js

    old new  
    860860        div = null; // release memory in IE
    861861})();
    862862
    863 if ( document.getElementsByClassName && document.documentElement.getElementsByClassName ) (function(){
    864         var div = document.createElement("div");
     863var div = document.createElement("div");
     864if ( div.getElementsByClassName ) (function(){
    865865        div.innerHTML = "<div class='test e'></div><div class='test'></div>";
    866866
    867867        // Opera can't find a second classname (in 9.6)
     
    880880                        return context.getElementsByClassName(match[1]);
    881881                }
    882882        };
    883 
    884         div = null; // release memory in IE
    885883})();
     884div = null; // release memory in IE
     885
    886886
    887887function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
    888888        var sibDir = dir == "previousSibling" && !isXML;