jQuery 1.0.4 New Wave Javascript(js源文件)

2020-05-19 07:32:46易采站长站整理

                else if ( !s.indexOf(“<td”) || !s.indexOf(“<th”) )
                    wrap = [3, “<table><tbody><tr>”, “</tr></tbody></table>”];
                // Go to html and back, then peel off extra wrappers
                div.innerHTML = wrap[1] + s + wrap[2];
                while ( wrap[0]– ) div = div.firstChild;
                arg = div.childNodes;
            } 
            
            if ( arg.length != undefined && ( (jQuery.browser.safari && typeof arg == ‘function’) || !arg.nodeType ) ) // Safari reports typeof on a DOM NodeList to be a function
                for ( var n = 0; n < arg.length; n++ ) // Handles Array, jQuery, DOM NodeList collections
                    r.push(arg[n]);
            else
                r.push(    arg.nodeType ? arg : document.createTextNode(arg.toString()) );
        }
        return r;
    },
    expr: {
        “”: “m[2]== ‘*’||a.nodeName.toUpperCase()==m[2].toUpperCase()”,
        “#”: “a.getAttribute(‘id’)&&a.getAttribute(‘id’)==m[2]”,
        “:”: {
            // Position Checks