diff --git a/doc/projects.md b/doc/projects.md index 2d7780f9d6..f5a43bbed4 100644 --- a/doc/projects.md +++ b/doc/projects.md @@ -54,3 +54,4 @@ Add your project/integration to this file and submit a pull request. 1. [axe-sarif-converter](https://github.com/microsoft/axe-sarif-converter) 1. [Selenium.Axe for .NET](https://github.com/TroyWalshProf/SeleniumAxeDotnet) 1. [vue-axe](https://github.com/vue-a11y/vue-axe-next) +1. [a11y-sitechecker](https://github.com/forsti0506/a11y-sitechecker) diff --git a/lib/standards/aria-roles.js b/lib/standards/aria-roles.js index de372b3dd5..a21fe4a2b1 100644 --- a/lib/standards/aria-roles.js +++ b/lib/standards/aria-roles.js @@ -147,6 +147,11 @@ const ariaRoles = { allowedAttrs: ['aria-expanded'], superclassRole: ['landmark'] }, + comment: { + type: 'structure', + allowedAttrs: ['aria-level', 'aria-posinset', 'aria-setsize'], + superclassRole: ['article'] + }, definition: { type: 'structure', allowedAttrs: ['aria-expanded'], @@ -391,6 +396,11 @@ const ariaRoles = { accessibleNameRequired: true, childrenPresentational: true }, + mark: { + type: 'structure', + superclassRole: ['section'], + prohibitedAttrs: ['aria-label', 'aria-labelledby'] + }, navigation: { type: 'landmark', allowedAttrs: ['aria-expanded'], @@ -674,6 +684,12 @@ const ariaRoles = { nameFromContent: true, childrenPresentational: true }, + suggestion: { + type: 'structure', + requiredOwned: ['insertion', 'deletion'], + superclassRole: ['section'], + prohibitedAttrs: ['aria-label', 'aria-labelledby'] + }, tab: { type: 'widget', requiredContext: ['tablist'], diff --git a/test/integration/rules/aria-allowed-attr/failures.html b/test/integration/rules/aria-allowed-attr/failures.html index 0f77954a3f..985a64363f 100644 --- a/test/integration/rules/aria-allowed-attr/failures.html +++ b/test/integration/rules/aria-allowed-attr/failures.html @@ -34,3 +34,7 @@ aria-orientation="horizontal" id="fail30" > +
fail
+
fail
+
fail
+
fail
diff --git a/test/integration/rules/aria-allowed-attr/failures.json b/test/integration/rules/aria-allowed-attr/failures.json index bbc6f0a214..5c5fb11ee7 100644 --- a/test/integration/rules/aria-allowed-attr/failures.json +++ b/test/integration/rules/aria-allowed-attr/failures.json @@ -31,6 +31,10 @@ ["#fail27"], ["#fail28"], ["#fail29"], - ["#fail30"] + ["#fail30"], + ["#fail31"], + ["#fail32"], + ["#fail33"], + ["#fail34"] ] } diff --git a/test/integration/rules/aria-allowed-attr/passes.html b/test/integration/rules/aria-allowed-attr/passes.html index b02bd1f62b..d27880688a 100644 --- a/test/integration/rules/aria-allowed-attr/passes.html +++ b/test/integration/rules/aria-allowed-attr/passes.html @@ -1941,3 +1941,13 @@ + + diff --git a/test/integration/rules/aria-allowed-attr/passes.json b/test/integration/rules/aria-allowed-attr/passes.json index 454213f927..769cb1f931 100644 --- a/test/integration/rules/aria-allowed-attr/passes.json +++ b/test/integration/rules/aria-allowed-attr/passes.json @@ -93,6 +93,7 @@ ["#pass88"], ["#pass89"], ["#pass90"], - ["#treegrid"] + ["#treegrid"], + ["#pass91"] ] } diff --git a/test/integration/rules/aria-required-children/aria-required-children.html b/test/integration/rules/aria-required-children/aria-required-children.html index aff30c2ae3..89024d8623 100644 --- a/test/integration/rules/aria-required-children/aria-required-children.html +++ b/test/integration/rules/aria-required-children/aria-required-children.html @@ -55,3 +55,10 @@ + +
+ option + option +
+ +
diff --git a/test/integration/rules/aria-required-children/aria-required-children.json b/test/integration/rules/aria-required-children/aria-required-children.json index 695071b043..05bcfa7185 100644 --- a/test/integration/rules/aria-required-children/aria-required-children.json +++ b/test/integration/rules/aria-required-children/aria-required-children.json @@ -8,7 +8,8 @@ ["#fail4"], ["#fail5"], ["#fail6"], - ["#fail7"] + ["#fail7"], + ["#fail8"] ], "passes": [ ["#pass1"], @@ -17,7 +18,8 @@ ["#pass4"], ["#pass5"], ["#pass6"], - ["#pass7"] + ["#pass7"], + ["#pass8"] ], "incomplete": [ ["#incomplete1"], diff --git a/test/integration/rules/aria-roles/aria-roles.html b/test/integration/rules/aria-roles/aria-roles.html index b00823f4c0..1e96194ace 100644 --- a/test/integration/rules/aria-roles/aria-roles.html +++ b/test/integration/rules/aria-roles/aria-roles.html @@ -111,6 +111,9 @@
ok
ok
ok
+ +
ok
+
ok
diff --git a/test/integration/rules/aria-roles/aria-roles.json b/test/integration/rules/aria-roles/aria-roles.json index 141df46da2..1e744aa129 100644 --- a/test/integration/rules/aria-roles/aria-roles.json +++ b/test/integration/rules/aria-roles/aria-roles.json @@ -129,6 +129,9 @@ ["#pass110"], ["#pass111"], ["#pass112"], - ["#pass113"] + ["#pass113"], + ["#pass114"], + ["#pass115"], + ["#pass116"] ] }