jquery
Version:
JavaScript library for DOM operations
18 lines (13 loc) • 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 + "*(?:''|\"\")"
);