Skip to content

Commit

Permalink
add invokeevent
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Oct 5, 2023
1 parent 43b1200 commit 85158ba
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -78127,6 +78127,45 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
the <code data-x="dom-ToggleEvent-oldState">oldState</code> attribute.</dd>
</dl>

<h4>The <code>InvokeEvent</code> interface</h4>

<pre><code class="idl">[Exposed=Window]
interface <dfn interface>InvokeEvent</dfn> : <span>Event</span> {
constructor(DOMString type, optional <span>InvokeEventInit</span> eventInitDict = {});
readonly attribute EventTarget? relatedTarget;
readonly attribute DOMString action;
};

dictionary <dfn dictionary>InvokeEventInit</dfn> : <span>EventInit</span> {
EventTarget? relatedTarget = null;
DOMString action = "auto";
};</code></pre>

<dl class="domintro">
<dt><code data-x=""><var>event</var>.<span subdfn
data-x="dom-InvokeEvent-action">action</span></code></dt>

<dd>
<p>This is a freeform hint dictating what action the element <!--non-normative-->must take.
Defaults to "<code data-x="">auto</code>".</p>
</dd>

<dt><code data-x=""><var>event</var>.<span subdfn
data-x="dom-InvokeEvent-relatedTarget">relatedTarget</span></code></dt>

<dd>
<p>Used to identifiy a secodnary <code>EventTarget</code> related to the Invoke event.</p>
</dd>

</dl>

<p>The <dfn attribute for="InvokeEvent"><code data-x="dom-InvokeEvent-action">action</code></dfn>
and attribute must return the value it is initialized to.</p>

<p>The <dfn attribute for="InvokeEvent"><code
data-x="dom-InvokeEvent-relatedTarget">relatedTarget</code></dfn> attribute should be initialized
to the <strong data-x="DOM event-path-shadow-adjusted-target">shadow-adjusted target</strong> that was
interacted with to cause the InvokeEvent.</p>

<h3>Focus</h3>

Expand Down Expand Up @@ -138358,6 +138397,12 @@ INSERT INTERFACES HERE
<td> Form controls
<td> Fired at controls during form validation if they do not satisfy their constraints

<tr> <!-- invoke -->
<td> <dfn event for="HTMLElement"><code data-x="event-invoke">invoke</code></dfn>
<td> <code>InvokeEvent</code>
<td> Elements
<td> Fired at elements when they handle a user invocation, such as from an invoketarget.

<tr> <!-- languagechange -->
<td> <dfn event for="Window,WorkerGlobalScope"><code data-x="event-languagechange">languagechange</code></dfn>
<td> <code>Event</code>
Expand Down

0 comments on commit 85158ba

Please sign in to comment.