diff --git a/lib/commons/aria/index.js b/lib/commons/aria/index.js index 7b09042504..272fb9042c 100644 --- a/lib/commons/aria/index.js +++ b/lib/commons/aria/index.js @@ -250,7 +250,7 @@ lookupTable.role = { 'checkbox': { type: 'widget', attributes: { - allowed: ['aria-checked', 'aria-required'] + allowed: ['aria-checked', 'aria-required', 'aria-readonly'] }, owned: null, nameFrom: ['author', 'contents'], @@ -960,7 +960,7 @@ lookupTable.role = { 'progressbar': { type: 'widget', attributes: { - allowed: ['aria-valuetext', 'aria-valuenow', 'aria-valuemax', 'aria-valuemin'] + allowed: ['aria-valuetext', 'aria-valuenow', 'aria-valuemax', 'aria-valuemin','aria-expanded'] }, owned: null, nameFrom: ['author'], @@ -980,7 +980,7 @@ lookupTable.role = { 'radiogroup': { type: 'composite', attributes: { - allowed: ['aria-activedescendant', 'aria-required', 'aria-expanded'] + allowed: ['aria-activedescendant', 'aria-required', 'aria-expanded', 'aria-readonly'] }, owned: { all: ['radio'] @@ -1085,7 +1085,7 @@ lookupTable.role = { 'separator': { type: 'structure', attributes: { - allowed: ['aria-expanded', 'aria-orientation'] + allowed: ['aria-expanded', 'aria-orientation', 'aria-valuenow', 'aria-valuemax','aria-valuemin', 'aria-valuetext'] }, owned: null, nameFrom: ['author'], @@ -1095,7 +1095,7 @@ lookupTable.role = { 'slider': { type: 'widget', attributes: { - allowed: ['aria-valuetext', 'aria-orientation'], + allowed: ['aria-valuetext', 'aria-orientation', 'aria-readonly'], required: ['aria-valuenow', 'aria-valuemax', 'aria-valuemin'] }, owned: null, @@ -1106,7 +1106,7 @@ lookupTable.role = { 'spinbutton': { type: 'widget', attributes: { - allowed: ['aria-valuetext', 'aria-required'], + allowed: ['aria-valuetext', 'aria-required', 'aria-readonly'], required: ['aria-valuenow', 'aria-valuemax', 'aria-valuemin'] }, owned: null, @@ -1217,7 +1217,7 @@ lookupTable.role = { 'toolbar': { type: 'structure', attributes: { - allowed: ['aria-activedescendant', 'aria-expanded'] + allowed: ['aria-activedescendant', 'aria-expanded', 'aria-orientation'] }, owned: null, nameFrom: ['author'], diff --git a/test/integration/rules/aria-allowed-attr/passes.html b/test/integration/rules/aria-allowed-attr/passes.html index 64dd11efa0..3a27d7edcb 100644 --- a/test/integration/rules/aria-allowed-attr/passes.html +++ b/test/integration/rules/aria-allowed-attr/passes.html @@ -13,7 +13,7 @@
ok
- +
ok
@@ -77,11 +77,11 @@
ok
-
ok
+
ok
-
ok
+
ok
ok
@@ -95,11 +95,11 @@ - + -
ok
+
ok
-
ok
+
ok
ok
@@ -113,7 +113,7 @@
ok
- +