diff --git a/lib/standards/aria-roles.js b/lib/standards/aria-roles.js index cb52d84240..62aec5072a 100644 --- a/lib/standards/aria-roles.js +++ b/lib/standards/aria-roles.js @@ -39,11 +39,18 @@ const ariaRoles = { type: 'landmark', allowedAttrs: ['aria-expanded'] }, + blockquote: { + type: 'structure' + }, button: { type: 'widget', allowedAttrs: ['aria-expanded', 'aria-pressed'], nameFromContent: true }, + caption: { + type: 'structure', + requiredContext: ['figure', 'table', 'grid'] + }, cell: { type: 'structure', requiredContext: ['row'], @@ -67,6 +74,9 @@ const ariaRoles = { allowedAttrs: ['aria-checked', 'aria-readonly', 'aria-required'], nameFromContent: true }, + code: { + type: 'structure' + }, columnheader: { type: 'structure', requiredContext: ['row'], @@ -117,6 +127,9 @@ const ariaRoles = { type: 'structure', allowedAttrs: ['aria-expanded'] }, + deletion: { + type: 'structure' + }, dialog: { type: 'widget', allowedAttrs: ['aria-expanded', 'aria-modal'] @@ -131,6 +144,9 @@ const ariaRoles = { type: 'structure', allowedAttrs: ['aria-expanded'] }, + emphasis: { + type: 'structure' + }, feed: { type: 'structure', requiredOwned: ['article'], @@ -191,6 +207,9 @@ const ariaRoles = { input: { type: 'abstract' }, + insertion: { + type: 'structure' + }, landmark: { type: 'abstract' }, @@ -284,6 +303,10 @@ const ariaRoles = { ], nameFromContent: true }, + meter: { + type: 'structure', + requiredAttrs: ['aria-valuemax', 'aria-valuemin', 'aria-valuenow'] + }, navigation: { type: 'landmark', allowedAttrs: ['aria-expanded'] @@ -309,6 +332,9 @@ const ariaRoles = { ], nameFromContent: true }, + paragraph: { + type: 'structure' + }, presentation: { type: 'structure' }, @@ -488,9 +514,18 @@ const ariaRoles = { type: 'widget', allowedAttrs: ['aria-expanded'] }, + strong: { + type: 'structure' + }, structure: { type: 'abstract' }, + subscript: { + type: 'structure' + }, + superscript: { + type: 'structure' + }, switch: { type: 'widget', requiredAttrs: ['aria-checked'], @@ -552,6 +587,9 @@ const ariaRoles = { 'aria-required' ] }, + time: { + type: 'structure' + }, timer: { type: 'widget', allowedAttrs: ['aria-expanded']