File tree Expand file tree Collapse file tree 5 files changed +4
-7
lines changed Expand file tree Collapse file tree 5 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { access } from "../core/access.js";
3
3
import { nodeName } from "../core/nodeName.js" ;
4
4
import { rnothtmlwhite } from "../var/rnothtmlwhite.js" ;
5
5
import { isIE } from "../var/isIE.js" ;
6
+ import { rbooleans } from "./var/rbooleans.js" ;
6
7
7
8
jQuery . fn . extend ( {
8
9
attr : function ( name , value ) {
@@ -97,7 +98,7 @@ if ( isIE ) {
97
98
} ;
98
99
}
99
100
100
- jQuery . each ( jQuery . expr . match . bool . source . match ( / \w + / g ) , function ( _i , name ) {
101
+ jQuery . each ( rbooleans . source . match ( / \w + / g ) , function ( _i , name ) {
101
102
jQuery . attrHooks [ name ] = {
102
103
get : function ( elem ) {
103
104
var ret ,
Original file line number Diff line number Diff line change
1
+ export var rbooleans = / ^ (?: c h e c k e d | s e l e c t e d | a s y n c | a u t o f o c u s | a u t o p l a y | c o n t r o l s | d e f e r | d i s a b l e d | h i d d e n | i s m a p | l o o p | m u l t i p l e | o p e n | r e a d o n l y | r e q u i r e d | s c o p e d ) $ / i;
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ import { jQuery } from "./core.js";
25
25
import { document } from "./var/document.js" ;
26
26
import { whitespace } from "./var/whitespace.js" ;
27
27
import { isIE } from "./var/isIE.js" ;
28
- import { booleans } from "./selector/var/booleans.js" ;
29
28
import { rleadingCombinator } from "./selector/var/rleadingCombinator.js" ;
30
29
import { rdescend } from "./selector/var/rdescend.js" ;
31
30
import { rsibling } from "./selector/var/rsibling.js" ;
10000
td>@@ -41,7 +40,6 @@ import "./selector/escapeSelector.js";
41
40
import "./selector/uniqueSort.js" ;
42
41
43
42
var matchExpr = jQuery . extend ( {
44
- bool : new RegExp ( "^(?:" + booleans + ")$" , "i" ) ,
45
43
needsContext : new RegExp ( "^" + whitespace + "*[>+~]" )
46
44
} , filterMatchExpr ) ;
47
45
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import { rbuggyQSA } from "./selector/rbuggyQSA.js";
9
9
import { rtrimCSS } from "./var/rtrimCSS.js" ;
10
10
import { isIE } from "./var/isIE.js" ;
11
11
import { identifier } from "./selector/var/identifier.js" ;
12
- import { booleans } from "./selector/var/booleans.js" ;
13
12
import { rleadingCombinator } from "./selector/var/rleadingCombinator.js" ;
14
13
import { rdescend } from "./selector/var/rdescend.js" ;
15
14
import { rsibling } from "./selector/var/rsibling.js" ;
@@ -24,6 +23,7 @@ import { tokenize } from "./selector/tokenize.js";
24
23
import { toSelector } from "./selector/toSelector.js" ;
25
24
26
25
// The following utils are attached directly to the jQuery object.
26
+ import "./attributes/attr.js" ;
27
27
import "./selector/escapeSelector.js" ;
28
28
import "./selector/uniqueSort.js" ;
29
29
50
50
ridentifier = new RegExp ( "^" + identifier + "$" ) ,
51
51
52
52
matchExpr = jQuery . extend ( {
53
- bool : new RegExp ( "^(?:" + booleans + ")$" , "i" ) ,
54
53
55
54
// For use in libraries implementing .is()
56
55
// We use this for POS matching in `select`
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments