Skip to content

Commit 2b1fa67

Browse files
keithamuspkra
authored andcommitted
add arianotify draft
1 parent 8e1ab5c commit 2b1fa67

File tree

1 file changed

+29
-2
lines changed

1 file changed

+29
-2
lines changed

index.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13538,8 +13538,8 @@ <h3>Presentational Roles Conflict Resolution</h3>
1353813538
</section>
1353913539
</section>
1354013540
<section id="idl-interface" class="normative">
13541-
<h2>IDL Interface</h2>
13542-
<p>Conforming user agents MUST implement the following IDL interface.</p>
13541+
<h2>IDL Interfaces</h2>
13542+
<p>Conforming user agents MUST implement the following IDL interfaces.</p>
1354313543
<section id="ARIAMixin" class="normative" data-dfn-for="ARIAMixin" data-link-for="ARIAMixin">
1354413544
<h2>Interface Mixin <dfn>ARIAMixin</dfn></h2>
1354513545
<pre class="idl" data-cite="webidl">
@@ -13610,7 +13610,33 @@ <h2>Interface Mixin <dfn>ARIAMixin</dfn></h2>
1361013610

1361113611
<p class="note">In practice, this means that, e.g., the <code>role</code> IDL attribute on <code>Element</code> reflects the <code>role</code> content attribute; the <code>ariaValueMin</code> IDL attribute reflects the <pref>aria-valuemin</pref> content attribute; etc. Ambiguity clarifications (such as <code>ariaPosInSet</code>) are listed in <a href="#idl_attr_exceptions">IDL Attribute Name Notes or Exceptions</a>.</p>
1361213612
</section>
13613+
<section id="ARIANotifyMixin" class="normative" data-dfn-for="ARIANotifyMixin" data-link-for="ARIANotifyMixin">
13614+
<h2>Interface Mixin <dfn>ARIANotifyMixin</dfn></h2>
13615+
<pre class="idl" data-cite="webidl">
13616+
enum AriaNotifyInterrupt { "none", "all", "pending" };
13617+
enum AriaNotifyPriority { "none", "important" };
13618+
13619+
dictionary AriaNotificationOptions {
13620+
AriaNotifyInterrupt interrupt = "none";
13621+
AriaNotifyPriority priority = "none";
13622+
DOMString notificationId = "";
13623+
};
13624+
interface mixin ARIANotifyMixin {
13625+
void ariaNotify(DOMString announcement, optional AriaNotificationOptions options = {});
13626+
};
13627+
Element includes ARIANotifyMixin;
13628+
Document includes ARIANotifyMixin;
13629+
</pre>
1361313630

13631+
<p>User Agent processing for the <dfn method for=ARIANotifyMixin><code>ariaNotify(<var>announcement</var>, <var>options</var>)</code></dfn> method steps are:</p>
13632+
<ol>
13633+
<li><p>Let <var>priority</var> be <var>options</var>["<code>priority</code>"].</p></li>
13634+
<li><p>Let <var>interrupt</var> be <var>options</var>["<code>interrupt</code>"].</p></li>
13635+
<li><p>Let <var>id</var> be <var>options</var>["<code>notifyId</code>"].</p></li>
13636+
<li><p>Run the aria notify steps given <var>node</var>, <var>announcement</var>, <var>priority</var>, <var>interrupt</var>, and <var>id</var>.</p></li>
13637+
</ol>
13638+
13639+
</section>
1361413640
<section id="accessibilityroleandproperties-correspondence" class="normative" data-dfn-for="ARIAMixin" data-link-for="ARIAMixin">
1361513641
<h2>ARIA Attribute Correspondence</h2>
1361613642
<p>The following table provides a correspondence between IDL attribute names and content attribute names, for use by <code>ARIAMixin</code>.</p>
@@ -13729,6 +13755,7 @@ <h2>Example IDL Attribute Usage</h2>
1372913755
</section>
1373013756

1373113757
</section>
13758+
1373213759
<section class="informative">
1373313760
<h2>Security Considerations</h2>
1373413761
<p>This specification introduces no new security considerations.</p>

0 commit comments

Comments
 (0)