-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] add a11y-no-redundant-roles check (#7067)
Part of #820 Closes #5361 Co-authored-by: mhatvan <[email protected]>
- Loading branch information
James Bradbury
and
mhatvan
authored
Jan 3, 2022
1 parent
9221f21
commit 84a4ef0
Showing
4 changed files
with
753 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
test/validator/samples/a11y-no-redundant-roles/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<a href="/" role="link">a link</a> | ||
<article role="article" /> | ||
<aside role="complementary" /> | ||
<body role="document" /> | ||
<button role="button" /> | ||
<datalist role="listbox" /> | ||
<dd role="definition" /> | ||
<dfn role="term" /> | ||
<details role="group" /> | ||
<dialog role="dialog" /> | ||
<dt role="term" /> | ||
<fieldset role="group" /> | ||
<figure role="figure" /> | ||
<form role="form">foo</form> | ||
<h1 role="heading">heading</h1> | ||
<h2 role="heading">heading</h2> | ||
<h3 role="heading">heading</h3> | ||
<h4 role="heading">heading</h4> | ||
<h5 role="heading">heading</h5> | ||
<h6 role="heading">heading</h6> | ||
<hr role="separator" /> | ||
<li role="listitem" /> | ||
<link role="link" /> | ||
<main role="main"></main> | ||
<menu role="list" /> | ||
<nav role="navigation" /> | ||
<ol role="list" /> | ||
<optgroup role="group" /> | ||
<option role="option" /> | ||
<output role="status" /> | ||
<progress role="progressbar" /> | ||
<section role="region" /> | ||
<summary role="button" /> | ||
<table role="table" /> | ||
<tbody role="rowgroup" /> | ||
<textarea role="textbox" /> | ||
<tfoot role="rowgroup" /> | ||
<thead role="rowgroup" /> | ||
<tr role="row" /> | ||
<ul role="list" /> | ||
|
||
<!-- Tested header/footer not nested in section/article --> | ||
<header role="banner"></header> | ||
<footer role="contentinfo"></footer> |
Oops, something went wrong.