dd/node_modules/jquery/src/selector/rbuggyQSA.js
2026-06-14 15:46:45 +08:00

18 lines
538 B
JavaScript

import { isIE } from "../var/isIE.js";
import { whitespace } from "../var/whitespace.js";
export var rbuggyQSA = isIE && new RegExp(
// Support: IE 9 - 11+
// IE's :disabled selector does not pick up the children of disabled fieldsets
":enabled|:disabled|" +
// Support: IE 11+
// IE 11 doesn't find elements on a `[name='']` query in some cases.
// Adding a temporary attribute to the document before the selection works
// around the issue.
"\\[" + whitespace + "*name" + whitespace + "*=" +
whitespace + "*(?:''|\"\")"
);