diff --git a/source b/source index b7d731bcacb..5ce64fef4c4 100644 --- a/source +++ b/source @@ -52397,8 +52397,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:

  1. If this is not mutable, then throw @@ -52408,6 +52410,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 @@ -52423,11 +52426,15 @@ You cannot submit this form when the field is incorrect. activation, then throw a "NotAllowedError" DOMException.

  2. +
  3. If this is a select element, and this is not + being rendered, then throw a "NotSupportedError" + DOMException.

  4. +
  5. 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:

  1. If element's relevant global object does not have transient @@ -52437,7 +52444,8 @@ You cannot submit this form when the field is incorrect. return.

  2. -

    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:

    @@ -52502,11 +52510,13 @@ You cannot submit this form when the field is incorrect. data-x="attr-input-type-color">Color states;

  3. input elements in various states that have a suggestions source element; and

  4. + data-x="concept-input-list">suggestions source element;

  5. 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).

  6. + handled via the special case above, instead of by this step); and

    + +
  7. select elements.

  8. However, the intent of this step is to trigger any picker UI implementation. So @@ -52932,6 +52942,8 @@ interface HTMLSelectElement : HTMLElement { boolean reportValidity(); undefined setCustomValidity(DOMString error); + undefined showPicker(); + readonly attribute NodeList labels; }; @@ -53259,6 +53271,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.

    +
    @@ -141053,6 +141083,7 @@ INSERT INTERFACES HERE Lucas Gadani, Łukasz Pilorz, Luke Kenneth Casson Leighton, + Luke Warlow, Luke Wilde, Maciej Stachowiak, Magne Andersson,