From 688acb764bd5420b6045ba3999eeccb82b185a8b Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Sun, 16 Jan 2022 12:30:10 -0500 Subject: [PATCH] mark directory as deprecated new PR since #52 got messed up somehow. marks `directory` as deprecated and fixes two typos --- aria-usage.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/aria-usage.js b/aria-usage.js index 9ca8e17..9db5155 100644 --- a/aria-usage.js +++ b/aria-usage.js @@ -112,7 +112,8 @@ var objRoleRules = { "requiredChild": null, "requiredState": null, "descendantRestrictions": null, - "supported": null + "supported": null, + "deprecated": true }, "document": { "requiredParent": null, @@ -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");