Skip to content

Commit

Permalink
Add invoke input and select defaults
Browse files Browse the repository at this point in the history
This specifies the invocation action algorithm for input and select.

- If an `invoketarget` points to a HTMLInputElement or HTMLSelectElement
   - If the `invokeaction` is `showPicker`, try to show the picker
  • Loading branch information
lukewarlow committed Nov 16, 2023
1 parent 22f018e commit 302afb5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -52620,6 +52620,30 @@ You cannot submit this form when the field is incorrect.</samp></pre>
</li>
</ol>

<hr>

<div w-nodev>
<p><strong>The <code>input</code> and <code>select</code> elements associated <span>invocation
action algorithm</span>, given <var>action</var> is as follows</strong>:
<ol>
<li>
<p>If <span>this</span>'s <span>relevant settings object</span>'s <span
data-x="concept-settings-object-origin">origin</span> is not <span>same origin</span> with
<span>this</span>'s <span>relevant settings object</span>'s <span>top-level origin</span>,
then return.</p>
</li>

<li><p>If <span>this</span> is a <code>select</code> element, and <span>this</span> is not
<span>being rendered</span>, then return.<p></li>

<li>
<p>If <var>action</var> is an <span>ASCII case-insensitive</span> match for "<code
data-x="">showPicker</code>", then <span>show the picker, if applicable</span>, for
<span>this</span>.</p>
</li>
</ol>
</div>

</div>


Expand Down

0 comments on commit 302afb5

Please sign in to comment.