Skip to content

Commit

Permalink
add arianotify draft
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus authored and pkra committed Jun 12, 2024
1 parent 8e1ab5c commit 2b1fa67
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13538,8 +13538,8 @@ <h3>Presentational Roles Conflict Resolution</h3>
</section>
</section>
<section id="idl-interface" class="normative">
<h2>IDL Interface</h2>
<p>Conforming user agents MUST implement the following IDL interface.</p>
<h2>IDL Interfaces</h2>
<p>Conforming user agents MUST implement the following IDL interfaces.</p>
<section id="ARIAMixin" class="normative" data-dfn-for="ARIAMixin" data-link-for="ARIAMixin">
<h2>Interface Mixin <dfn>ARIAMixin</dfn></h2>
<pre class="idl" data-cite="webidl">
Expand Down Expand Up @@ -13610,7 +13610,33 @@ <h2>Interface Mixin <dfn>ARIAMixin</dfn></h2>

<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>
</section>
<section id="ARIANotifyMixin" class="normative" data-dfn-for="ARIANotifyMixin" data-link-for="ARIANotifyMixin">
<h2>Interface Mixin <dfn>ARIANotifyMixin</dfn></h2>
<pre class="idl" data-cite="webidl">
enum AriaNotifyInterrupt { "none", "all", "pending" };
enum AriaNotifyPriority { "none", "important" };

dictionary AriaNotificationOptions {
AriaNotifyInterrupt interrupt = "none";
AriaNotifyPriority priority = "none";
DOMString notificationId = "";
};
interface mixin ARIANotifyMixin {
void ariaNotify(DOMString announcement, optional AriaNotificationOptions options = {});
};
Element includes ARIANotifyMixin;
Document includes ARIANotifyMixin;
</pre>

<p>User Agent processing for the <dfn method for=ARIANotifyMixin><code>ariaNotify(<var>announcement</var>, <var>options</var>)</code></dfn> method steps are:</p>
<ol>
<li><p>Let <var>priority</var> be <var>options</var>["<code>priority</code>"].</p></li>
<li><p>Let <var>interrupt</var> be <var>options</var>["<code>interrupt</code>"].</p></li>
<li><p>Let <var>id</var> be <var>options</var>["<code>notifyId</code>"].</p></li>
<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>
</ol>

</section>
<section id="accessibilityroleandproperties-correspondence" class="normative" data-dfn-for="ARIAMixin" data-link-for="ARIAMixin">
<h2>ARIA Attribute Correspondence</h2>
<p>The following table provides a correspondence between IDL attribute names and content attribute names, for use by <code>ARIAMixin</code>.</p>
Expand Down Expand Up @@ -13729,6 +13755,7 @@ <h2>Example IDL Attribute Usage</h2>
</section>

</section>

<section class="informative">
<h2>Security Considerations</h2>
<p>This specification introduces no new security considerations.</p>
Expand Down

0 comments on commit 2b1fa67

Please sign in to comment.