Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add invokeevent #9835

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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