diff --git a/lib/commons/aria/index.js b/lib/commons/aria/index.js index d0752ac083..c919c46a84 100644 --- a/lib/commons/aria/index.js +++ b/lib/commons/aria/index.js @@ -253,7 +253,7 @@ lookupTables.role = { 'columnheader': { type: 'structure', attributes: { - allowed: ['aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan', + allowed: ['aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan', 'aria-required', 'aria-readonly', 'aria-selected', 'aria-sort'] }, owned: null, @@ -344,7 +344,7 @@ lookupTables.role = { attributes: { allowed: ['aria-expanded'] }, - owned: { + owned: { one: ['article'] }, nameFrom: ['author'], @@ -363,7 +363,8 @@ lookupTables.role = { 'grid': { type: 'composite', attributes: { - allowed: ['aria-level', 'aria-multiselectable', 'aria-readonly', 'aria-activedescendant', 'aria-expanded'] + allowed: ['aria-activedescendant', 'aria-expanded', 'aria-colcount', 'aria-level', + 'aria-multiselectable', 'aria-readonly', 'aria-rowcount'] }, owned: { one: ['rowgroup', 'row'] @@ -375,7 +376,7 @@ lookupTables.role = { 'gridcell': { type: 'widget', attributes: { - allowed: ['aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', + allowed: ['aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan', 'aria-selected', 'aria-readonly', 'aria-required'] }, owned: null, @@ -648,7 +649,8 @@ lookupTables.role = { 'row': { type: 'structure', attributes: { - allowed: ['aria-activedescendant', 'aria-colcount', 'aria-expanded', 'aria-level', 'aria-selected', 'aria-rowcount', 'aria-rowindex'] + allowed: ['aria-activedescendant', 'aria-colindex', 'aria-expanded', + 'aria-level', 'aria-selected', 'aria-rowindex'] }, owned: { one: ['cell', 'columnheader', 'rowheader', 'gridcell'] @@ -672,7 +674,7 @@ lookupTables.role = { 'rowheader': { type: 'structure', attributes: { - allowed: ['aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan', + allowed: ['aria-colindex', 'aria-colspan', 'aria-expanded', 'aria-rowindex', 'aria-rowspan', 'aria-required', 'aria-readonly', 'aria-selected', 'aria-sort'] }, owned: null, diff --git a/test/integration/rules/aria-allowed-attr/failures.html b/test/integration/rules/aria-allowed-attr/failures.html index 6fcc27e848..d6760c0c4a 100644 --- a/test/integration/rules/aria-allowed-attr/failures.html +++ b/test/integration/rules/aria-allowed-attr/failures.html @@ -1,3 +1,5 @@