Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1 of accname name computation tests #39604

Merged
merged 9 commits into from
Apr 25, 2023
Prev Previous commit
Next Next commit
fix error-laden error handling ;)
  • Loading branch information
cookiecrook committed Apr 21, 2023

Verified

This commit was signed with the committer’s verified signature.
tomusdrw Tomek Drwięga
commit e4bf45bc02ee30dc2db4e4edc08a9e5cb925a7e5
2 changes: 1 addition & 1 deletion wai-aria/scripts/aria-utils.js
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ const AriaUtils = {

*/
assignAndVerifyRolesByRoleNames: function(roleNames) {
if (typeof roleNames != "Array" || !roleNames.length) {
if (!Array.isArray(roleNames) || !roleNames.length) {
throw `Param roleNames of assignAndVerifyRolesByRoleNames("${roleNames}") should be an array containing at least one role string.`;
}
for (const role of roleNames) {