File tree Expand file tree Collapse file tree 6 files changed +31
-13
lines changed
a11y-click-events-have-key-events
a11y-no-interactive-element-to-noninteractive-role Expand file tree Collapse file tree 6 files changed +31
-13
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' svelte ' : patch
3+ ---
4+
5+ fix: bump ` axobject-query `
Original file line number Diff line number Diff line change 109109 "@types/estree" : " ^1.0.1" ,
110110 "acorn" : " ^8.9.0" ,
111111 "aria-query" : " ^5.3.0" ,
112- "axobject-query" : " ^3.2.1 " ,
112+ "axobject-query" : " ^4.0.0 " ,
113113 "code-red" : " ^1.0.3" ,
114114 "css-tree" : " ^2.3.1" ,
115115 "estree-walker" : " ^3.0.3" ,
Original file line number Diff line number Diff line change 33
44 let props = {};
55
6- const dynamicTypeValue = " checkbox" ;
7- const dynamicAriaHiddenValue = " false" ;
8- const dynamicRole = " button" ;
6+ const dynamicTypeValue = ' checkbox' ;
7+ const dynamicAriaHiddenValue = ' false' ;
8+ const dynamicRole = ' button' ;
99 </script >
1010
1111<!-- should warn -->
3131<a href ="http://x.y.z" on:click ={noop }>foo</a >
3232<button on:click ={noop } />
3333<select on:click ={noop } />
34+ <summary on:click ={noop } />
3435
3536<input type ="button" on:click ={noop } />
3637<input type ={dynamicTypeValue } on:click ={noop } />
Original file line number Diff line number Diff line change 9999<div role =" tab" />
100100<div role =" textbox" />
101101<div role ="treeitem" aria-selected ={true } />
102- <summary role =" listitem" />
103102
104103<!-- HTML elements attributed with a non-interactive role -->
105104<div role =" alert" />
144143<menuitem role =" listitem" />
145144<option class =" foo" role =" listitem" />
146145<select class =" foo" role =" listitem" />
146+ <summary role =" listitem" />
147147<textarea class =" foo" role =" listitem" />
148148<tr role =" listitem" />
Original file line number Diff line number Diff line change 639639 "code" : " a11y-no-interactive-element-to-noninteractive-role" ,
640640 "end" : {
641641 "column" : 28 ,
642- "line" : 144
642+ "line" : 143
643643 },
644644 "message" : " A11y: <menuitem> cannot have role 'listitem'" ,
645+ "start" : {
646+ "column" : 0 ,
647+ "line" : 143
648+ }
649+ },
650+ {
651+ "code" : " a11y-no-interactive-element-to-noninteractive-role" ,
652+ "end" : {
653+ "column" : 38 ,
654+ "line" : 144
655+ },
656+ "message" : " A11y: <option> cannot have role 'listitem'" ,
645657 "start" : {
646658 "column" : 0 ,
647659 "line" : 144
653665 "column" : 38 ,
654666 "line" : 145
655667 },
656- "message" : " A11y: <option > cannot have role 'listitem'" ,
668+ "message" : " A11y: <select > cannot have role 'listitem'" ,
657669 "start" : {
658670 "column" : 0 ,
659671 "line" : 145
662674 {
663675 "code" : " a11y-no-interactive-element-to-noninteractive-role" ,
664676 "end" : {
665- "column" : 38 ,
677+ "column" : 27 ,
666678 "line" : 146
667679 },
668- "message" : " A11y: <select > cannot have role 'listitem'" ,
680+ "message" : " A11y: <summary > cannot have role 'listitem'" ,
669681 "start" : {
670682 "column" : 0 ,
671683 "line" : 146
You can’t perform that action at this time.
0 commit comments