Skip to content

Commit

Permalink
mark directory as deprecated
Browse files Browse the repository at this point in the history
new PR since ThePacielloGroup#52 got messed up somehow.  marks `directory` as deprecated and fixes two typos
  • Loading branch information
scottaohara authored Jan 16, 2022
1 parent 7e8e47a commit 688acb7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aria-usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ var objRoleRules = {
"requiredChild": null,
"requiredState": null,
"descendantRestrictions": null,
"supported": null
"supported": null,
"deprecated": true
},
"document": {
"requiredParent": null,
Expand Down Expand Up @@ -2029,8 +2030,8 @@ function checkRequiredState(objElement, strRole) {
var strType;
var i;

// Special condition for separator that isn"t focusable
// The role isn"t valid on native elements that receive keyboard focus,
// Special condition for separator that isn't focusable
// The role isn't valid on native elements that receive keyboard focus,
// so just check tabindex
if (strRole === "separator") {
i = objElement.getAttribute("tabindex");
Expand Down

0 comments on commit 688acb7

Please sign in to comment.