From 1128ff271fc6eeb5dd75876da3c6e6cdab3f851e Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Sat, 15 Jan 2022 14:51:47 -0500 Subject: [PATCH] allows role=combobox on button and input type=button This PR addresses [ARIA in HTML](https://github.com/w3c/html-aria/pull/396) being updated to allow the `combobox` role on these elements, and fix an oversight where `role=checkbox` should have been allowed on `input type=button` to match the same allowance on the `button` element. --- aria-usage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aria-usage.js b/aria-usage.js index c6368be..9ca8e17 100644 --- a/aria-usage.js +++ b/aria-usage.js @@ -864,7 +864,7 @@ var objElementRules = { "button": { "nodeName": "button", "nativeRole": "button", - "allowedRoles": ["checkbox", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "switch", "tab"] + "allowedRoles": ["checkbox", "combobox", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "switch", "tab"] }, "canvas": { "nodeName": "canvas", @@ -1069,7 +1069,7 @@ var objElementRules = { "input-button": { "nodeName": "input", "nativeRole": "button", - "allowedRoles": ["link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "switch", "tab"] + "allowedRoles": ["checkbox", "combobox", "link", "menuitem", "menuitemcheckbox", "menuitemradio", "option", "radio", "switch", "tab"] }, "input-checkbox": { "nodeName": "input",