Chrome reported an error *,: x is not a valid selector,firefox runs well below

clipboard.png

clipboard.png

clipboard.png

clipboard.png

Mar.18,2021

It is not a bug, it is a feature.
< hr >

jQuery uses some tests to test browser compatibility, which is not compatible if reported to exception,. Of course, these exception are wrapped in try.catch . Click Pause on caught exception, and even if you are captured, the browser will pause here. Anyway, it's a test, so just ignore it.

the tests are all packaged in assert

.
assert(function( div ) {
    // Support: Windows 8 Native Apps
    // The type and name attributes are restricted during .innerHTML assignment
    var input = doc.createElement("input");
    input.setAttribute( "type", "hidden" );
    div.appendChild( input ).setAttribute( "name", "D" );

    // Support: IE8
    // Enforce case-sensitivity of name attribute
    if ( div.querySelectorAll("[name=d]").length ) {
        rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
    }

    // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
    // IE8 throws error here and will not see later tests
    if ( !div.querySelectorAll(":enabled").length ) {
        rbuggyQSA.push( ":enabled", ":disabled" );
    }

    // Opera 10-11 does not throw on post-comma invalid pseudos
    div.querySelectorAll("*,:x");
    rbuggyQSA.push(",.*:");
});
Menu