@@ -52397,8 +52397,10 @@ You cannot submit this form when the field is incorrect.</samp></pre>
52397
52397
52398
52398
<hr>
52399
52399
52400
- <p>The <dfn method for="HTMLInputElement"><code
52401
- data-x="dom-input-showPicker">showPicker()</code></dfn> method steps are:</p>
52400
+ <p>The <code>HTMLInputElement</code> <dfn method for="HTMLInputElement"><code
52401
+ data-x="dom-input-showPicker">showPicker()</code></dfn> and <code>HTMLSelectElement</code> <dfn
52402
+ method for="HTMLSelectElement"><code data-x="dom-select-showPicker">showPicker()</code></dfn>
52403
+ method steps are:</p>
52402
52404
52403
52405
<ol>
52404
52406
<li><p>If <span>this</span> is not <span data-x="concept-fe-mutable">mutable</span>, then throw
@@ -52408,6 +52410,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>
52408
52410
<p>If <span>this</span>'s <span>relevant settings object</span>'s <span
52409
52411
data-x="concept-settings-object-origin">origin</span> is not <span>same origin</span> with
52410
52412
<span>this</span>'s <span>relevant settings object</span>'s <span>top-level origin</span>, and
52413
+ <span>this</span> is a <code>select</code> element, or
52411
52414
<span>this</span>'s <code data-x="attr-input-type">type</code> attribute is not in the <span
52412
52415
data-x="attr-input-type-file">File Upload</span> state or <span
52413
52416
data-x="attr-input-type-color">Color</span> state, then throw a
@@ -52423,11 +52426,15 @@ You cannot submit this form when the field is incorrect.</samp></pre>
52423
52426
activation</span>, then throw a <span>"<code>NotAllowedError</code>"</span>
52424
52427
<code>DOMException</code>.</p></li>
52425
52428
52429
+ <li><p>If <span>this</span> is a <code>select</code> element, and <span>this</span> is not
52430
+ <span>being rendered</span>, then throw a <span>"<code>NotSupportedError</code>"</span>
52431
+ <code>DOMException</code>.<p></li>
52432
+
52426
52433
<li><p><span>Show the picker, if applicable</span>, for <span>this</span>.</p></li>
52427
52434
</ol>
52428
52435
52429
- <p>To <dfn>show the picker, if applicable</dfn> for an <code>input</code> element
52430
- <var>element</var>:</p>
52436
+ <p>To <dfn>show the picker, if applicable</dfn> for an <code>input</code> or <code>select</code>
52437
+ element <var>element</var>:</p>
52431
52438
52432
52439
<ol>
52433
52440
<li><p>If <var>element</var>'s <span>relevant global object</span> does not have <span>transient
@@ -52437,7 +52444,8 @@ You cannot submit this form when the field is incorrect.</samp></pre>
52437
52444
return.</p></li>
52438
52445
52439
52446
<li>
52440
- <p>If <var>element</var>'s <code data-x="attr-input-type">type</code> attribute is in the <span
52447
+ <p>If <var>element</var> is an <code>input</code> element and <var>element</var>'s <code
52448
+ data-x="attr-input-type">type</code> attribute is in the <span
52441
52449
data-x="attr-input-type-file">File Upload</span> state, then run these steps <span>in
52442
52450
parallel</span>:</p>
52443
52451
@@ -52502,11 +52510,13 @@ You cannot submit this form when the field is incorrect.</samp></pre>
52502
52510
data-x="attr-input-type-color">Color</span> states;</p></li>
52503
52511
52504
52512
<li><p><code>input</code> elements in various states that have a <span
52505
- data-x="concept-input-list">suggestions source element</span>; and </p></li>
52513
+ data-x="concept-input-list">suggestions source element</span>;</p></li>
52506
52514
52507
52515
<li><p><code>input</code> elements whose <code data-x="attr-input-type">type</code> attribute
52508
52516
is in the <span data-x="attr-input-type-file">File Upload</span> state (although those are
52509
- handled via the special case above, instead of by this step).</p></li>
52517
+ handled via the special case above, instead of by this step); and</p></li>
52518
+
52519
+ <li><p><code>select</code> elements.</p></li>
52510
52520
</ul>
52511
52521
52512
52522
<p>However, the intent of this step is to trigger <em>any</em> picker UI implementation. So
@@ -52932,6 +52942,8 @@ interface <dfn interface>HTMLSelectElement</dfn> : <span>HTMLElement</span> {
52932
52942
boolean <span data-x="dom-cva-reportValidity">reportValidity</span>();
52933
52943
undefined <span data-x="dom-cva-setCustomValidity">setCustomValidity</span>(DOMString error);
52934
52944
52945
+ undefined <span data-x="dom-select-showPicker">showPicker</span>();
52946
+
52935
52947
readonly attribute <span>NodeList</span> <span data-x="dom-lfe-labels">labels</span>;
52936
52948
};</code></pre>
52937
52949
</dd>
@@ -53259,6 +53271,24 @@ interface <dfn interface>HTMLSelectElement</dfn> : <span>HTMLElement</span> {
53259
53271
53260
53272
<p>Can be set, to change the selection.</p>
53261
53273
</dd>
53274
+
53275
+ <dt><code data-x=""><var>select</var>.<span subdfn data-x="dom-select-showPicker">showPicker</span>()</code></dt>
53276
+
53277
+ <dd>
53278
+ <p>Shows any applicable picker UI for <var>select</var>, so that the user can select a value.
53279
+
53280
+ <p>Throws an <span>"<code>InvalidStateError</code>"</span> <code>DOMException</code> if
53281
+ <var>select</var> is not <span data-x="concept-fe-mutable">mutable</span>.</p>
53282
+
53283
+ <p>Throws a <span>"<code>NotAllowedError</code>"</span> <code>DOMException</code> if called
53284
+ without <span data-x="transient activation">transient user activation</span>.</p>
53285
+
53286
+ <p>Throws a <span>"<code>SecurityError</code>"</span> <code>DOMException</code> if
53287
+ <var>select</var> is inside a cross-origin <code>iframe</code>.</p>
53288
+
53289
+ <p>Throws a <span>"<code>NotSupportedError</code>"</span> <code>DOMException</code> if
53290
+ <var>select</var> is not <span>being rendered</span>.</p>
53291
+ </dd>
53262
53292
</dl>
53263
53293
53264
53294
<div w-nodev>
@@ -141068,6 +141098,7 @@ INSERT INTERFACES HERE
141068
141098
Lucas Gadani,
141069
141099
Łukasz Pilorz,
141070
141100
Luke Kenneth Casson Leighton,
141101
+ Luke Warlow,
141071
141102
Luke Wilde,
141072
141103
Maciej Stachowiak,
141073
141104
Magne Andersson,
0 commit comments