@@ -304,21 +304,21 @@ test('select.matches()', async function (t) {
304304 await t . test (
305305 'should match if attribute matches (numeric)' ,
306306 async function ( ) {
307- assert . ok ( matches ( '[tabindex=-1 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
307+ assert . ok ( matches ( '[tabindex="-1" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
308308 }
309309 )
310310
311311 await t . test (
312312 'should match if attribute matches (positive numeric)' ,
313313 async function ( ) {
314- assert . ok ( matches ( '[minlength=3 ]' , h ( 'input' , { minLength : 3 } ) ) )
314+ assert . ok ( matches ( '[minlength="3" ]' , h ( 'input' , { minLength : 3 } ) ) )
315315 }
316316 )
317317
318318 await t . test (
319319 'should not match if attribute does not matches (string value)' ,
320320 async function ( ) {
321- assert . ok ( ! matches ( '[id=two]' , h ( '#one' ) ) )
321+ assert . ok ( ! matches ( '[id=" two" ]' , h ( '#one' ) ) )
322322 }
323323 )
324324
@@ -374,14 +374,14 @@ test('select.matches()', async function (t) {
374374 await t . test (
375375 'should not match if attribute does not matches (numeric)' ,
376376 async function ( ) {
377- assert . ok ( ! matches ( '[tabindex=-1 ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
377+ assert . ok ( ! matches ( '[tabindex="-1" ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
378378 }
379379 )
380380
381381 await t . test (
382382 'should not match if attribute does not matches (positive numeric)' ,
383383 async function ( ) {
384- assert . ok ( ! matches ( '[minlength=3 ]' , h ( 'input' , { minLength : 2 } ) ) )
384+ assert . ok ( ! matches ( '[minlength="3" ]' , h ( 'input' , { minLength : 2 } ) ) )
385385 }
386386 )
387387 } )
@@ -444,14 +444,14 @@ test('select.matches()', async function (t) {
444444 await t . test (
445445 'should match if attribute starts with (numeric)' ,
446446 async function ( ) {
447- assert . ok ( matches ( '[tabindex^=- ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
447+ assert . ok ( matches ( '[tabindex^="-" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
448448 }
449449 )
450450
451451 await t . test (
452452 'should match if attribute starts with (positive numeric)' ,
453453 async function ( ) {
454- assert . ok ( matches ( '[minlength^=1 ]' , h ( 'input' , { minLength : 10 } ) ) )
454+ assert . ok ( matches ( '[minlength^="1" ]' , h ( 'input' , { minLength : 10 } ) ) )
455455 }
456456 )
457457
@@ -507,14 +507,14 @@ test('select.matches()', async function (t) {
507507 await t . test (
508508 'should not match if attribute does not start with (numeric)' ,
509509 async function ( ) {
510- assert . ok ( ! matches ( '[tabindex^=- ]' , h ( 'div' , { tabIndex : 2 } ) ) )
510+ assert . ok ( ! matches ( '[tabindex^="-" ]' , h ( 'div' , { tabIndex : 2 } ) ) )
511511 }
512512 )
513513
514514 await t . test (
515515 'should not match if attribute does not start with (positive numeric)' ,
516516 async function ( ) {
517- assert . ok ( ! matches ( '[minlength^=1 ]' , h ( 'input' , { minLength : 2 } ) ) )
517+ assert . ok ( ! matches ( '[minlength^="1" ]' , h ( 'input' , { minLength : 2 } ) ) )
518518 }
519519 )
520520 } )
@@ -577,14 +577,14 @@ test('select.matches()', async function (t) {
577577 await t . test (
578578 'should match if attribute ends with (numeric)' ,
579579 async function ( ) {
580- assert . ok ( matches ( '[tabindex$=1 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
580+ assert . ok ( matches ( '[tabindex$="1" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
581581 }
582582 )
583583
584584 await t . test (
585585 'should match if attribute ends with (positive numeric)' ,
586586 async function ( ) {
587- assert . ok ( matches ( '[minlength$=0 ]' , h ( 'input' , { minLength : 10 } ) ) )
587+ assert . ok ( matches ( '[minlength$="0" ]' , h ( 'input' , { minLength : 10 } ) ) )
588588 }
589589 )
590590
@@ -638,14 +638,14 @@ test('select.matches()', async function (t) {
638638 await t . test (
639639 'should not match if attribute does not end with (numeric)' ,
640640 async function ( ) {
641- assert . ok ( ! matches ( '[tabindex$=2 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
641+ assert . ok ( ! matches ( '[tabindex$="2" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
642642 }
643643 )
644644
645645 await t . test (
646646 'should not match if attribute does not start with (positive numeric)' ,
647647 async function ( ) {
648- assert . ok ( ! matches ( '[minlength$=1 ]' , h ( 'input' , { minLength : 2 } ) ) )
648+ assert . ok ( ! matches ( '[minlength$="1" ]' , h ( 'input' , { minLength : 2 } ) ) )
649649 }
650650 )
651651 } )
@@ -708,14 +708,14 @@ test('select.matches()', async function (t) {
708708 await t . test (
709709 'should match if attribute contains (numeric)' ,
710710 async function ( ) {
711- assert . ok ( matches ( '[tabindex*=1 ]' , h ( 'div' , { tabIndex : - 12 } ) ) )
711+ assert . ok ( matches ( '[tabindex*="1" ]' , h ( 'div' , { tabIndex : - 12 } ) ) )
712712 }
713713 )
714714
715715 await t . test (
716716 'should match if attribute contains (positive numeric)' ,
717717 async function ( ) {
718- assert . ok ( matches ( '[minlength*=0 ]' , h ( 'input' , { minLength : 102 } ) ) )
718+ assert . ok ( matches ( '[minlength*="0" ]' , h ( 'input' , { minLength : 102 } ) ) )
719719 }
720720 )
721721
@@ -769,14 +769,14 @@ test('select.matches()', async function (t) {
769769 await t . test (
770770 'should not match if attribute does not contain (numeric)' ,
771771 async function ( ) {
772- assert . ok ( ! matches ( '[tabindex*=3 ]' , h ( 'div' , { tabIndex : - 12 } ) ) )
772+ assert . ok ( ! matches ( '[tabindex*="3" ]' , h ( 'div' , { tabIndex : - 12 } ) ) )
773773 }
774774 )
775775
776776 await t . test (
777777 'should not match if attribute does not contain (positive numeric)' ,
778778 async function ( ) {
779- assert . ok ( ! matches ( '[minlength*=3 ]' , h ( 'input' , { minLength : 102 } ) ) )
779+ assert . ok ( ! matches ( '[minlength*="3" ]' , h ( 'input' , { minLength : 102 } ) ) )
780780 }
781781 )
782782 } )
@@ -843,14 +843,14 @@ test('select.matches()', async function (t) {
843843 await t . test (
844844 'should match if attribute matches (numeric)' ,
845845 async function ( ) {
846- assert . ok ( matches ( '[tabindex~=-1 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
846+ assert . ok ( matches ( '[tabindex~="-1" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
847847 }
848848 )
849849
850850 await t . test (
851851 'should match if attribute matches (positive numeric)' ,
852852 async function ( ) {
853- assert . ok ( matches ( '[minlength~=3 ]' , h ( 'input' , { minLength : 3 } ) ) )
853+ assert . ok ( matches ( '[minlength~="3" ]' , h ( 'input' , { minLength : 3 } ) ) )
854854 }
855855 )
856856
@@ -913,14 +913,14 @@ test('select.matches()', async function (t) {
913913 await t . test (
914914 'should not match if attribute does not matches (numeric)' ,
915915 async function ( ) {
916- assert . ok ( ! matches ( '[tabindex~=-1 ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
916+ assert . ok ( ! matches ( '[tabindex~="-1" ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
917917 }
918918 )
919919
920920 await t . test (
921921 'should not match if attribute does not matches (positive numeric)' ,
922922 async function ( ) {
923- assert . ok ( ! matches ( '[minlength~=3 ]' , h ( 'input' , { minLength : 2 } ) ) )
923+ assert . ok ( ! matches ( '[minlength~="3" ]' , h ( 'input' , { minLength : 2 } ) ) )
924924 }
925925 )
926926
@@ -1009,14 +1009,14 @@ test('select.matches()', async function (t) {
10091009 await t . test (
10101010 'should match if attribute matches (numeric)' ,
10111011 async function ( ) {
1012- assert . ok ( matches ( '[tabindex|=-1 ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
1012+ assert . ok ( matches ( '[tabindex|="-1" ]' , h ( 'div' , { tabIndex : - 1 } ) ) )
10131013 }
10141014 )
10151015
10161016 await t . test (
10171017 'should match if attribute matches (positive numeric)' ,
10181018 async function ( ) {
1019- assert . ok ( matches ( '[minlength|=3 ]' , h ( 'input' , { minLength : 3 } ) ) )
1019+ assert . ok ( matches ( '[minlength|="3" ]' , h ( 'input' , { minLength : 3 } ) ) )
10201020 }
10211021 )
10221022
@@ -1079,14 +1079,14 @@ test('select.matches()', async function (t) {
10791079 await t . test (
10801080 'should not match if attribute does not matches (numeric)' ,
10811081 async function ( ) {
1082- assert . ok ( ! matches ( '[tabindex|=-1 ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
1082+ assert . ok ( ! matches ( '[tabindex|="-1" ]' , h ( 'div' , { tabIndex : - 2 } ) ) )
10831083 }
10841084 )
10851085
10861086 await t . test (
10871087 'should not match if attribute does not matches (positive numeric)' ,
10881088 async function ( ) {
1089- assert . ok ( ! matches ( '[minlength|=3 ]' , h ( 'input' , { minLength : 2 } ) ) )
1089+ assert . ok ( ! matches ( '[minlength|="3" ]' , h ( 'input' , { minLength : 2 } ) ) )
10901090 }
10911091 )
10921092
0 commit comments