From 9e290e54b7323c0c1fe6e3cd0cdebed049d5b01b Mon Sep 17 00:00:00 2001 From: James Nurthen Date: Fri, 3 Sep 2021 16:51:43 -0700 Subject: [PATCH 1/5] Update IDL and enumerated attribute section --- index.html | 177 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 111 insertions(+), 66 deletions(-) diff --git a/index.html b/index.html index b999299a4..bc6a5d30b 100644 --- a/index.html +++ b/index.html @@ -10226,12 +10226,48 @@

Value

Enumerated Attribute Values

-

When the ARIA attribute definition includes a table enumerating the attribute's allowed values, that attribute is an enumerated attribute. Each value in the table is a keyword for the attribute, mapping to a state of the same name. When the values table notates one of the values as "(default)", that default value is the missing value default and invalid value default for the attribute.

-
-

Example Enumerated Attribute Usage

-

As noted in Mapping WAI-ARIA Value Types to Languages, attributes are included in host languages, and the syntax for representation of enumerated value types is governed by the host language.

-

All enumerated attribute getters and setters use string values, including the boolean-like enumerated true/false type.

- +
@@ -13597,56 +13643,55 @@

Interface Mixin ARIAMixin

 			interface mixin ARIAMixin {
 				attribute DOMString? role;
-
-				
-				attribute DOMString ariaAtomic;
-				attribute DOMString ariaAutoComplete;
-				attribute DOMString ariaBusy;
-				attribute DOMString ariaChecked;
-				attribute DOMString ariaColCount;
-				attribute DOMString ariaColIndex;
-				attribute DOMString ariaColIndexText;
-				attribute DOMString ariaColSpan;
-				
-				attribute DOMString ariaCurrent;
-				
-				attribute DOMString ariaDescription;
-				
-				attribute DOMString ariaDisabled;
-				
-				attribute DOMString ariaExpanded;
-				
-				attribute DOMString ariaHasPopup;
-				attribute DOMString ariaHidden;
-				attribute DOMString ariaInvalid;
-				attribute DOMString ariaKeyShortcuts;
-				attribute DOMString ariaLabel;
-				
-				attribute DOMString ariaLevel;
-				attribute DOMString ariaLive;
-				attribute DOMString ariaModal;
-				attribute DOMString ariaMultiLine;
-				attribute DOMString ariaMultiSelectable;
-				attribute DOMString ariaOrientation;
-				
-				attribute DOMString ariaPlaceholder;
-				attribute DOMString ariaPosInSet;
-				attribute DOMString ariaPressed;
-				attribute DOMString ariaReadOnly;
-				
-				attribute DOMString ariaRequired;
-				attribute DOMString ariaRoleDescription;
-				attribute DOMString ariaRowCount;
-				attribute DOMString ariaRowIndex;
-				attribute DOMString ariaRowIndexText;
-				attribute DOMString ariaRowSpan;
-				attribute DOMString ariaSelected;
-				attribute DOMString ariaSetSize;
-				attribute DOMString ariaSort;
-				attribute DOMString ariaValueMax;
-				attribute DOMString ariaValueMin;
-				attribute DOMString ariaValueNow;
-				attribute DOMString ariaValueText;
+				
+				attribute DOMString? ariaAtomic;
+				attribute DOMString? ariaAutoComplete;
+				attribute DOMString? ariaBusy;
+				attribute DOMString? ariaChecked;
+				attribute DOMString? ariaColCount;
+				attribute DOMString? ariaColIndex;
+				attribute DOMString? ariaColIndexText;
+				attribute DOMString? ariaColSpan;
+				
+				attribute DOMString? ariaCurrent;
+				
+				attribute DOMString? ariaDescription;
+				
+				attribute DOMString? ariaDisabled;
+				
+				attribute DOMString? ariaExpanded;
+				
+				attribute DOMString? ariaHasPopup;
+				attribute DOMString? ariaHidden;
+				attribute DOMString? ariaInvalid;
+				attribute DOMString? ariaKeyShortcuts;
+				attribute DOMString? ariaLabel;
+				
+				attribute DOMString? ariaLevel;
+				attribute DOMString? ariaLive;
+				attribute DOMString? ariaModal;
+				attribute DOMString? ariaMultiLine;
+				attribute DOMString? ariaMultiSelectable;
+				attribute DOMString? ariaOrientation;
+				
+				attribute DOMString? ariaPlaceholder;
+				attribute DOMString? ariaPosInSet;
+				attribute DOMString? ariaPressed;
+				attribute DOMString? ariaReadOnly;
+				
+				attribute DOMString? ariaRequired;
+				attribute DOMString? ariaRoleDescription;
+				attribute DOMString? ariaRowCount;
+				attribute DOMString? ariaRowIndex;
+				attribute DOMString? ariaRowIndexText;
+				attribute DOMString? ariaRowSpan;
+				attribute DOMString? ariaSelected;
+				attribute DOMString? ariaSetSize;
+				attribute DOMString? ariaSort;
+				attribute DOMString? ariaValueMax;
+				attribute DOMString? ariaValueMin;
+				attribute DOMString? ariaValueNow;
+				attribute DOMString? ariaValueText;
 			};
 		
From d61f6fee8a3dd82ff111852d8b06b3ab6e93cea0 Mon Sep 17 00:00:00 2001 From: James Nurthen Date: Thu, 9 Sep 2021 11:01:08 -0700 Subject: [PATCH 2/5] Update index.html Co-authored-by: James Craig --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index bc6a5d30b..9fa6251c7 100644 --- a/index.html +++ b/index.html @@ -10302,8 +10302,8 @@

Example Enumerated Attribute Usage

el.setAttribute("aria-busy", "busy"); el.ariaBusy; // "false" - - + - +