aboutsummaryrefslogtreecommitdiffstats
path: root/src/selector/rbuggyQSA.js
blob: bae05398fd8dcc528741c9b8c578bd0513572c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import isIE from "../var/isIE.js";
import whitespace from "../var/whitespace.js";

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 + "*(?:''|\"\")"

);

export default rbuggyQSA;