Skip to content

Implement <input> and <select> element showPicker #42843

Open

Description

@stevennovaryo

Spec: https://html.spec.whatwg.org/multipage/input.html#dom-input-showpicker

  1. If this is not mutable, then throw an "InvalidStateError" DOMException.
  2. 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 "SecurityError" DOMException.
  3. If this's relevant global object does not have transient activation, then throw a "NotAllowedError" DOMException.
  4. If this is a select element, and this is not being rendered, then throw a "NotSupportedError" DOMException.
  5. Show the picker, if applicable, for this.

We need to implement show the picker, if applicable for an HTMLInputElement and HTMLSelectElement as well (maybe as a function in parent class HTMLElement). Because it is only implemented in HTMLInputElement specifically for color type input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-content/script

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions