@@ -304,21 +304,21 @@ test('select.matches()', async function (t) {
304
304
await t . test (
305
305
'should match if attribute matches (numeric)' ,
306
306
async function ( ) {
307
- assert . ok ( matches ( '[tabindex=-1 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
307
+ assert . ok ( matches ( '[tabindex="-1" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
308
308
}
309
309
)
310
310
311
311
await t . test (
312
312
'should match if attribute matches (positive numeric)' ,
313
313
async function ( ) {
314
- assert . ok ( matches ( '[minlength=3 ]' , h ( 'input' , { minLength : 3 } ) ) )
314
+ assert . ok ( matches ( '[minlength="3" ]' , h ( 'input' , { minLength : 3 } ) ) )
315
315
}
316
316
)
317
317
318
318
await t . test (
319
319
'should not match if attribute does not matches (string value)' ,
320
320
async function ( ) {
321
- assert . ok ( ! matches ( '[id=two]' , h ( '#one' ) ) )
321
+ assert . ok ( ! matches ( '[id=" two" ]' , h ( '#one' ) ) )
322
322
}
323
323
)
324
324
@@ -374,14 +374,14 @@ test('select.matches()', async function (t) {
374
374
await t . test (
375
375
'should not match if attribute does not matches (numeric)' ,
376
376
async function ( ) {
377
- assert . ok ( ! matches ( '[tabindex=-1 ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
377
+ assert . ok ( ! matches ( '[tabindex="-1" ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
378
378
}
379
379
)
380
380
381
381
await t . test (
382
382
'should not match if attribute does not matches (positive numeric)' ,
383
383
async function ( ) {
384
- assert . ok ( ! matches ( '[minlength=3 ]' , h ( 'input' , { minLength : 2 } ) ) )
384
+ assert . ok ( ! matches ( '[minlength="3" ]' , h ( 'input' , { minLength : 2 } ) ) )
385
385
}
386
386
)
387
387
} )
@@ -444,14 +444,14 @@ test('select.matches()', async function (t) {
444
444
await t . test (
445
445
'should match if attribute starts with (numeric)' ,
446
446
async function ( ) {
447
- assert . ok ( matches ( '[tabindex^=- ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
447
+ assert . ok ( matches ( '[tabindex^="-" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
448
448
}
449
449
)
450
450
451
451
await t . test (
452
452
'should match if attribute starts with (positive numeric)' ,
453
453
async function ( ) {
454
- assert . ok ( matches ( '[minlength^=1 ]' , h ( 'input' , { minLength : 10 } ) ) )
454
+ assert . ok ( matches ( '[minlength^="1" ]' , h ( 'input' , { minLength : 10 } ) ) )
455
455
}
456
456
)
457
457
@@ -507,14 +507,14 @@ test('select.matches()', async function (t) {
507
507
await t . test (
508
508
'should not match if attribute does not start with (numeric)' ,
509
509
async function ( ) {
510
- assert . ok ( ! matches ( '[tabindex^=- ]' , h ( 'div' , { tabIndex : 2 } ) ) )
510
+ assert . ok ( ! matches ( '[tabindex^="-" ]' , h ( 'div' , { tabIndex : 2 } ) ) )
511
511
}
512
512
)
513
513
514
514
await t . test (
515
515
'should not match if attribute does not start with (positive numeric)' ,
516
516
async function ( ) {
517
- assert . ok ( ! matches ( '[minlength^=1 ]' , h ( 'input' , { minLength : 2 } ) ) )
517
+ assert . ok ( ! matches ( '[minlength^="1" ]' , h ( 'input' , { minLength : 2 } ) ) )
518
518
}
519
519
)
520
520
} )
@@ -577,14 +577,14 @@ test('select.matches()', async function (t) {
577
577
await t . test (
578
578
'should match if attribute ends with (numeric)' ,
579
579
async function ( ) {
580
- assert . ok ( matches ( '[tabindex$=1 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
580
+ assert . ok ( matches ( '[tabindex$="1" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
581
581
}
582
582
)
583
583
584
584
await t . test (
585
585
'should match if attribute ends with (positive numeric)' ,
586
586
async function ( ) {
587
- assert . ok ( matches ( '[minlength$=0 ]' , h ( 'input' , { minLength : 10 } ) ) )
587
+ assert . ok ( matches ( '[minlength$="0" ]' , h ( 'input' , { minLength : 10 } ) ) )
588
588
}
589
589
)
590
590
@@ -638,14 +638,14 @@ test('select.matches()', async function (t) {
638
638
await t . test (
639
639
'should not match if attribute does not end with (numeric)' ,
640
640
async function ( ) {
641
- assert . ok ( ! matches ( '[tabindex$=2 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
641
+ assert . ok ( ! matches ( '[tabindex$="2" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
642
642
}
643
643
)
644
644
645
645
await t . test (
646
646
'should not match if attribute does not start with (positive numeric)' ,
647
647
async function ( ) {
648
- assert . ok ( ! matches ( '[minlength$=1 ]' , h ( 'input' , { minLength : 2 } ) ) )
648
+ assert . ok ( ! matches ( '[minlength$="1" ]' , h ( 'input' , { minLength : 2 } ) ) )
649
649
}
650
650
)
651
651
} )
@@ -708,14 +708,14 @@ test('select.matches()', async function (t) {
708
708
await t . test (
709
709
'should match if attribute contains (numeric)' ,
710
710
async function ( ) {
711
- assert . ok ( matches ( '[tabindex*=1 ]' , h ( 'div' , { tabIndex : - 12 } ) ) )
711
+ assert . ok ( matches ( '[tabindex*="1" ]' , h ( 'div' , { tabIndex : - 12 } ) ) )
712
712
}
713
713
)
714
714
715
715
await t . test (
716
716
'should match if attribute contains (positive numeric)' ,
717
717
async function ( ) {
718
- assert . ok ( matches ( '[minlength*=0 ]' , h ( 'input' , { minLength : 102 } ) ) )
718
+ assert . ok ( matches ( '[minlength*="0" ]' , h ( 'input' , { minLength : 102 } ) ) )
719
719
}
720
720
)
721
721
@@ -769,14 +769,14 @@ test('select.matches()', async function (t) {
769
769
await t . test (
770
770
'should not match if attribute does not contain (numeric)' ,
771
771
async function ( ) {
772
- assert . ok ( ! matches ( '[tabindex*=3 ]' , h ( 'div' , { tabIndex : - 12 } ) ) )
772
+ assert . ok ( ! matches ( '[tabindex*="3" ]' , h ( 'div' , { tabIndex : - 12 } ) ) )
773
773
}
774
774
)
775
775
776
776
await t . test (
777
777
'should not match if attribute does not contain (positive numeric)' ,
778
778
async function ( ) {
779
- assert . ok ( ! matches ( '[minlength*=3 ]' , h ( 'input' , { minLength : 102 } ) ) )
779
+ assert . ok ( ! matches ( '[minlength*="3" ]' , h ( 'input' , { minLength : 102 } ) ) )
780
780
}
781
781
)
782
782
} )
@@ -843,14 +843,14 @@ test('select.matches()', async function (t) {
843
843
await t . test (
844
844
'should match if attribute matches (numeric)' ,
845
845
async function ( ) {
846
- assert . ok ( matches ( '[tabindex~=-1 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
846
+ assert . ok ( matches ( '[tabindex~="-1" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
847
847
}
848
848
)
849
849
850
850
await t . test (
851
851
'should match if attribute matches (positive numeric)' ,
852
852
async function ( ) {
853
- assert . ok ( matches ( '[minlength~=3 ]' , h ( 'input' , { minLength : 3 } ) ) )
853
+ assert . ok ( matches ( '[minlength~="3" ]' , h ( 'input' , { minLength : 3 } ) ) )
854
854
}
855
855
)
856
856
@@ -913,14 +913,14 @@ test('select.matches()', async function (t) {
913
913
await t . test (
914
914
'should not match if attribute does not matches (numeric)' ,
915
915
async function ( ) {
916
- assert . ok ( ! matches ( '[tabindex~=-1 ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
916
+ assert . ok ( ! matches ( '[tabindex~="-1" ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
917
917
}
918
918
)
919
919
920
920
await t . test (
921
921
'should not match if attribute does not matches (positive numeric)' ,
922
922
async function ( ) {
923
- assert . ok ( ! matches ( '[minlength~=3 ]' , h ( 'input' , { minLength : 2 } ) ) )
923
+ assert . ok ( ! matches ( '[minlength~="3" ]' , h ( 'input' , { minLength : 2 } ) ) )
924
924
}
925
925
)
926
926
@@ -1009,14 +1009,14 @@ test('select.matches()', async function (t) {
1009
1009
await t . test (
1010
1010
'should match if attribute matches (numeric)' ,
1011
1011
async function ( ) {
1012
- assert . ok ( matches ( '[tabindex|=-1 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
1012
+ assert . ok ( matches ( '[tabindex|="-1" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
1013
1013
}
1014
1014
)
1015
1015
1016
1016
await t . test (
1017
1017
'should match if attribute matches (positive numeric)' ,
1018
1018
async function ( ) {
1019
- assert . ok ( matches ( '[minlength|=3 ]' , h ( 'input' , { minLength : 3 } ) ) )
1019
+ assert . ok ( matches ( '[minlength|="3" ]' , h ( 'input' , { minLength : 3 } ) ) )
1020
1020
}
1021
1021
)
1022
1022
@@ -1079,14 +1079,14 @@ test('select.matches()', async function (t) {
1079
1079
await t . test (
1080
1080
'should not match if attribute does not matches (numeric)' ,
1081
1081
async function ( ) {
1082
- assert . ok ( ! matches ( '[tabindex|=-1 ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
1082
+ assert . ok ( ! matches ( '[tabindex|="-1" ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
1083
1083
}
1084
1084
)
1085
1085
1086
1086
await t . test (
1087
1087
'should not match if attribute does not matches (positive numeric)' ,
1088
1088
async function ( ) {
1089
- assert . ok ( ! matches ( '[minlength|=3 ]' , h ( 'input' , { minLength : 2 } ) ) )
1089
+ assert . ok ( ! matches ( '[minlength|="3" ]' , h ( 'input' , { minLength : 2 } ) ) )
1090
1090
}
1091
1091
)
1092
1092
0 commit comments