@@ -75,27 +75,6 @@ ruleTester.run('role-supports-aria-props', rule, {
75
75
{ code : '<area href="#" aria-owns />' } ,
76
76
{ code : '<area href="#" aria-relevant />' } ,
77
77
78
- // LINK TESTS - implicit role is `link`
79
- { code : '<link href="#" aria-expanded />' } ,
80
- { code : '<link href="#" aria-atomic />' } ,
81
- { code : '<link href="#" aria-busy />' } ,
82
- { code : '<link href="#" aria-controls />' } ,
83
- { code : '<link href="#" aria-describedby />' } ,
84
- { code : '<link href="#" aria-disabled />' } ,
85
- { code : '<link href="#" aria-dropeffect />' } ,
86
- { code : '<link href="#" aria-flowto />' } ,
87
- { code : '<link href="#" aria-grabbed />' } ,
88
- { code : '<link href="#" aria-hidden />' } ,
89
- { code : '<link href="#" aria-haspopup />' } ,
90
- { code : '<link href="#" aria-label />' } ,
91
- { code : '<link href="#" aria-labelledby />' } ,
92
- { code : '<link href="#" aria-live />' } ,
93
- { code : '<link href="#" aria-owns />' } ,
94
- { code : '<link href="#" aria-relevant />' } ,
95
-
96
- // this will have global
97
- { code : '<link aria-checked />' } ,
98
-
99
78
// this will have role of `img`
100
79
{ code : '<img alt="foobar" aria-busy />' } ,
101
80
@@ -338,6 +317,7 @@ ruleTester.run('role-supports-aria-props', rule, {
338
317
{ code : '<datalist aria-expanded />' } ,
339
318
{ code : '<div role="heading" aria-level />' } ,
340
319
{ code : '<div role="heading" aria-level="1" />' } ,
320
+ { code : '<link href="#" aria-expanded />' } , // link maps to nothing
341
321
] ,
342
322
343
323
invalid : [
@@ -358,10 +338,6 @@ ruleTester.run('role-supports-aria-props', rule, {
358
338
code : '<area href="#" aria-checked />' ,
359
339
errors : [ getErrorMessage ( 'aria-checked' , 'link' ) ] ,
360
340
} ,
361
- {
362
- code : '<link href="#" aria-checked />' ,
363
- errors : [ getErrorMessage ( 'aria-checked' , 'link' ) ] ,
364
- } ,
365
341
{
366
342
code : '<img alt="foobar" aria-checked />' ,
367
343
errors : [ getErrorMessage ( 'aria-checked' , 'img' ) ] ,
@@ -482,10 +458,6 @@ ruleTester.run('role-supports-aria-props', rule, {
482
458
code : '<menu type="toolbar" aria-expanded />' ,
483
459
errors : [ getErrorMessage ( 'aria-expanded' , 'toolbar' ) ] ,
484
460
} ,
485
- {
486
- code : '<link href="#" aria-invalid />' ,
487
- errors : [ getErrorMessage ( 'aria-invalid' , 'link' ) ] ,
488
- } ,
489
461
{
490
462
code : '<area href="#" aria-invalid />' ,
491
463
errors : [ getErrorMessage ( 'aria-invalid' , 'link' ) ] ,
0 commit comments