diff --git a/source b/source index e4aed77eb44..387ae956898 100644 --- a/source +++ b/source @@ -52223,8 +52223,10 @@ You cannot submit this form when the field is incorrect.
The showPicker()
method steps are:
The HTMLInputElement
showPicker()
and HTMLSelectElement
showPicker()
+ method steps are:
If this is not mutable, then throw @@ -52234,6 +52236,7 @@ You cannot submit this form when the field is incorrect.
If this's relevant settings object's origin is not same origin with
this's relevant settings object's top-level origin, and
+ this is a select
element, or
this's type
attribute is not in the File Upload state or Color state, then throw a
@@ -52249,11 +52252,15 @@ You cannot submit this form when the field is incorrect.
activation, then throw a "NotAllowedError
"
DOMException
.
If this is a select
element, and this is not
+ being rendered, then throw a "NotSupportedError
"
+ DOMException
.
Show the picker, if applicable, for this.
To show the picker, if applicable for an input
element
- element:
To show the picker, if applicable for an input
or select
+ element element:
If element's relevant global object does not have transient @@ -52263,7 +52270,8 @@ You cannot submit this form when the field is incorrect. return.
If element's type
attribute is in the If element is an input
element and element's type
attribute is in the File Upload state, then run these steps in
parallel:
input
elements in various states that have a suggestions source element; and
input
elements whose type
attribute
is in the File Upload state (although those are
- handled via the special case above, instead of by this step).
select
elements.
However, the intent of this step is to trigger any picker UI implementation. So @@ -52758,6 +52768,8 @@ interface HTMLSelectElement : HTMLElement { boolean reportValidity(); undefined setCustomValidity(DOMString error); + undefined showPicker(); + readonly attribute NodeList labels; }; @@ -53085,6 +53097,24 @@ interface HTMLSelectElement : HTMLElement {
Can be set, to change the selection.
+ +select.showPicker()
Shows any applicable picker UI for select, so that the user can select a value. + +
Throws an "InvalidStateError
" DOMException
if
+ select is not mutable.
Throws a "NotAllowedError
" DOMException
if called
+ without transient user activation.
Throws a "SecurityError
" DOMException
if
+ select is inside a cross-origin iframe
.
Throws a "NotSupportedError
" DOMException
if
+ select is not being rendered.