HTMLSelectElement extension type
The HTMLSelectElement
interface represents a select
HTML Element.
These elements also share all of the properties and methods of other HTML
elements via the HTMLElement interface.
- on
- Implemented types
- Available extensions
Constructors
- HTMLSelectElement()
- Creates an HTMLSelectElement using the tag 'select'.
Properties
- accessKey ↔ String
-
getter/setter pairinherited
- accessKeyLabel → String
-
no setterinherited
- assignedSlot → HTMLSlotElement?
-
no setterinherited
- attributes → NamedNodeMap
-
no setterinherited
- attributeStyleMap → StylePropertyMap
-
no setterinherited
- autocapitalize ↔ String
-
getter/setter pairinherited
- autocomplete ↔ String
-
getter/setter pair
- autofocus ↔ bool
-
getter/setter pairinherited
- baseURI → String
-
no setterinherited
- childElementCount → int
-
no setterinherited
- childNodes → NodeList
-
no setterinherited
- children → HTMLCollection
-
no setterinherited
- classList → DOMTokenList
-
no setterinherited
- className ↔ String
-
getter/setter pairinherited
- clientHeight → int
-
no setterinherited
- clientLeft → int
-
no setterinherited
- clientTop → int
-
no setterinherited
- clientWidth → int
-
no setterinherited
- contentEditable ↔ String
-
getter/setter pairinherited
- dataset → DOMStringMap
-
no setterinherited
- dir ↔ String
-
getter/setter pairinherited
- disabled ↔ bool
-
getter/setter pair
- draggable ↔ bool
-
getter/setter pairinherited
- enterKeyHint ↔ String
-
getter/setter pairinherited
- firstChild → Node?
-
no setterinherited
- firstElementChild → Element?
-
no setterinherited
- form → HTMLFormElement?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
getter/setter pairinherited
- id ↔ String
-
getter/setter pairinherited
- inert ↔ bool
-
getter/setter pairinherited
- innerHTML ↔ String
-
getter/setter pairinherited
- innerText ↔ String
-
getter/setter pairinherited
- inputMode ↔ String
-
getter/setter pairinherited
- isConnected → bool
-
no setterinherited
- isContentEditable → bool
-
no setterinherited
- isDefinedAndNotNull → bool
-
Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension
no setter - isNull → bool
-
Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension
Whether this value corresponds to JavaScriptnull
.no setter - isTruthy → JSBoolean
-
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of!!
in JavaScript.this
no setter - isUndefined → bool
-
Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension
Whether this value corresponds to JavaScriptundefined
.no setter - isUndefinedOrNull → bool
-
Available on JSAny?, provided by the NullableUndefineableJSAnyExtension extension
no setter - labels → NodeList
-
no setter
- lang ↔ String
-
getter/setter pairinherited
- lastChild → Node?
-
no setterinherited
- lastElementChild → Element?
-
no setterinherited
- length ↔ int
-
getter/setter pair
- localName → String
-
no setterinherited
- multiple ↔ bool
-
getter/setter pair
- name ↔ String
-
getter/setter pair
- namespaceURI → String?
-
no setterinherited
- nextElementSibling → Element?
-
no setterinherited
- nextSibling → Node?
-
no setterinherited
- nodeName → String
-
no setterinherited
- nodeType → int
-
no setterinherited
- nodeValue ↔ String?
-
getter/setter pairinherited
- nonce ↔ String
-
getter/setter pairinherited
- not → JSBoolean
-
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of!
in JavaScript.this
no setter - offsetHeight → int
-
no setterinherited
- offsetLeft → int
-
no setterinherited
- offsetParent → Element?
-
no setterinherited
- offsetTop → int
-
no setterinherited
- offsetWidth → int
-
no setterinherited
- onabort ↔ EventHandler?
-
getter/setter pairinherited
-
onAbort
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onanimationcancel ↔ EventHandler?
-
getter/setter pairinherited
- onanimationend ↔ EventHandler?
-
getter/setter pairinherited
- onanimationiteration ↔ EventHandler?
-
getter/setter pairinherited
- onanimationstart ↔ EventHandler?
-
getter/setter pairinherited
- onauxclick ↔ EventHandler?
-
getter/setter pairinherited
-
onBeforeCopy
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onBeforeCut
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onbeforeinput ↔ EventHandler?
-
getter/setter pairinherited
- onbeforematch ↔ EventHandler?
-
getter/setter pairinherited
-
onBeforePaste
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onbeforetoggle ↔ EventHandler?
-
getter/setter pairinherited
- onblur ↔ EventHandler?
-
getter/setter pairinherited
-
onBlur
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - oncancel ↔ EventHandler?
-
getter/setter pairinherited
- oncanplay ↔ EventHandler?
-
getter/setter pairinherited
-
onCanPlay
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - oncanplaythrough ↔ EventHandler?
-
getter/setter pairinherited
-
onCanPlayThrough
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onchange ↔ EventHandler?
-
getter/setter pairinherited
-
onClick
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onclick ↔ EventHandler?
-
getter/setter pairinherited
- onclose ↔ EventHandler?
-
getter/setter pairinherited
- oncontextlost ↔ EventHandler?
-
getter/setter pairinherited
-
onContextMenu
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
getter/setter pairinherited
- oncontextrestored ↔ EventHandler?
-
getter/setter pairinherited
-
onCopy
→ ElementStream<
ClipboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - oncopy ↔ EventHandler?
-
getter/setter pairinherited
- oncuechange ↔ EventHandler?
-
getter/setter pairinherited
-
onCut
→ ElementStream<
ClipboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - oncut ↔ EventHandler?
-
getter/setter pairinherited
- ondblclick ↔ EventHandler?
-
getter/setter pairinherited
-
onDoubleClick
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondrag ↔ EventHandler?
-
getter/setter pairinherited
-
onDrag
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onDragEnd
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondragend ↔ EventHandler?
-
getter/setter pairinherited
-
onDragEnter
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondragenter ↔ EventHandler?
-
getter/setter pairinherited
-
onDragLeave
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondragleave ↔ EventHandler?
-
getter/setter pairinherited
- ondragover ↔ EventHandler?
-
getter/setter pairinherited
-
onDragOver
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onDragStart
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondragstart ↔ EventHandler?
-
getter/setter pairinherited
-
onDrop
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondrop ↔ EventHandler?
-
getter/setter pairinherited
-
onDurationChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - ondurationchange ↔ EventHandler?
-
getter/setter pairinherited
-
onEmptied
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onemptied ↔ EventHandler?
-
getter/setter pairinherited
-
onEnded
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onended ↔ EventHandler?
-
getter/setter pairinherited
-
onError
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onerror ↔ OnErrorEventHandler?
-
getter/setter pairinherited
-
onFocus
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onfocus ↔ EventHandler?
-
getter/setter pairinherited
- onformdata ↔ EventHandler?
-
getter/setter pairinherited
-
onFullscreenChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onFullscreenError
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - ongotpointercapture ↔ EventHandler?
-
getter/setter pairinherited
- oninput ↔ EventHandler?
-
getter/setter pairinherited
-
onInput
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - oninvalid ↔ EventHandler?
-
getter/setter pairinherited
-
onInvalid
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onKeyDown
→ ElementStream<
KeyboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onkeydown ↔ EventHandler?
-
getter/setter pairinherited
-
onKeyPress
→ ElementStream<
KeyboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onkeypress ↔ EventHandler?
-
getter/setter pairinherited
-
onKeyUp
→ ElementStream<
KeyboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onkeyup ↔ EventHandler?
-
getter/setter pairinherited
-
onLoad
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onload ↔ EventHandler?
-
getter/setter pairinherited
-
onLoadedData
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onloadeddata ↔ EventHandler?
-
getter/setter pairinherited
- onloadedmetadata ↔ EventHandler?
-
getter/setter pairinherited
-
onLoadedMetadata
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onloadstart ↔ EventHandler?
-
getter/setter pairinherited
- onlostpointercapture ↔ EventHandler?
-
getter/setter pairinherited
- onmousedown ↔ EventHandler?
-
getter/setter pairinherited
-
onMouseDown
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onMouseEnter
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmouseenter ↔ EventHandler?
-
getter/setter pairinherited
- onmouseleave ↔ EventHandler?
-
getter/setter pairinherited
-
onMouseLeave
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onMouseMove
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmousemove ↔ EventHandler?
-
getter/setter pairinherited
-
onMouseOut
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmouseout ↔ EventHandler?
-
getter/setter pairinherited
- onmouseover ↔ EventHandler?
-
getter/setter pairinherited
-
onMouseOver
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onmouseup ↔ EventHandler?
-
getter/setter pairinherited
-
onMouseUp
→ ElementStream<
MouseEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onMouseWheel
→ ElementStream<
WheelEvent> -
Available on Element, provided by the ElementCustomEvents extension
no setter -
onPaste
→ ElementStream<
ClipboardEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onpaste ↔ EventHandler?
-
getter/setter pairinherited
-
onPause
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onpause ↔ EventHandler?
-
getter/setter pairinherited
-
onPlay
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onplay ↔ EventHandler?
-
getter/setter pairinherited
-
onPlaying
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onplaying ↔ EventHandler?
-
getter/setter pairinherited
- onpointercancel ↔ EventHandler?
-
getter/setter pairinherited
- onpointerdown ↔ EventHandler?
-
getter/setter pairinherited
- onpointerenter ↔ EventHandler?
-
getter/setter pairinherited
- onpointerleave ↔ EventHandler?
-
getter/setter pairinherited
- onpointermove ↔ EventHandler?
-
getter/setter pairinherited
- onpointerout ↔ EventHandler?
-
getter/setter pairinherited
- onpointerover ↔ EventHandler?
-
getter/setter pairinherited
- onpointerrawupdate ↔ EventHandler?
-
getter/setter pairinherited
- onpointerup ↔ EventHandler?
-
getter/setter pairinherited
- onprogress ↔ EventHandler?
-
getter/setter pairinherited
- onratechange ↔ EventHandler?
-
getter/setter pairinherited
-
onRateChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onreset ↔ EventHandler?
-
getter/setter pairinherited
-
onReset
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onresize ↔ EventHandler?
-
getter/setter pairinherited
-
onResize
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onscroll ↔ EventHandler?
-
getter/setter pairinherited
-
onScroll
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onscrollend ↔ EventHandler?
-
getter/setter pairinherited
-
onSearch
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onsecuritypolicyviolation ↔ EventHandler?
-
getter/setter pairinherited
- onseeked ↔ EventHandler?
-
getter/setter pairinherited
-
onSeeked
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onseeking ↔ EventHandler?
-
getter/setter pairinherited
-
onSeeking
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onselect ↔ EventHandler?
-
getter/setter pairinherited
-
onSelect
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onselectionchange ↔ EventHandler?
-
getter/setter pairinherited
- onselectstart ↔ EventHandler?
-
getter/setter pairinherited
-
onSelectStart
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onslotchange ↔ EventHandler?
-
getter/setter pairinherited
- onstalled ↔ EventHandler?
-
getter/setter pairinherited
-
onStalled
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onsubmit ↔ EventHandler?
-
getter/setter pairinherited
-
onSubmit
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onsuspend ↔ EventHandler?
-
getter/setter pairinherited
-
onSuspend
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontimeupdate ↔ EventHandler?
-
getter/setter pairinherited
-
onTimeUpdate
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontoggle ↔ EventHandler?
-
getter/setter pairinherited
- ontouchcancel ↔ EventHandler?
-
getter/setter pairinherited
-
onTouchCancel
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontouchend ↔ EventHandler?
-
getter/setter pairinherited
-
onTouchEnd
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onTouchEnter
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onTouchLeave
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontouchmove ↔ EventHandler?
-
getter/setter pairinherited
-
onTouchMove
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontouchstart ↔ EventHandler?
-
getter/setter pairinherited
-
onTouchStart
→ ElementStream<
TouchEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - ontransitioncancel ↔ EventHandler?
-
getter/setter pairinherited
-
onTransitionEnd
→ ElementStream<
TransitionEvent> -
Available on Element, provided by the ElementCustomEvents extension
no setter - ontransitionend ↔ EventHandler?
-
getter/setter pairinherited
- ontransitionrun ↔ EventHandler?
-
getter/setter pairinherited
- ontransitionstart ↔ EventHandler?
-
getter/setter pairinherited
- onvolumechange ↔ EventHandler?
-
getter/setter pairinherited
-
onVolumeChange
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onWaiting
→ ElementStream<
Event> -
Available on Element, provided by the ElementEventGetters extension
no setter - onwaiting ↔ EventHandler?
-
getter/setter pairinherited
-
onWebGlContextLost
→ ElementStream<
WebGLContextEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter -
onWebGlContextRestored
→ ElementStream<
WebGLContextEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - onwebkitanimationend ↔ EventHandler?
-
getter/setter pairinherited
- onwebkitanimationiteration ↔ EventHandler?
-
getter/setter pairinherited
- onwebkitanimationstart ↔ EventHandler?
-
getter/setter pairinherited
- onwebkittransitionend ↔ EventHandler?
-
getter/setter pairinherited
- onwheel ↔ EventHandler?
-
getter/setter pairinherited
-
onWheel
→ ElementStream<
WheelEvent> -
Available on Element, provided by the ElementEventGetters extension
no setter - options → HTMLOptionsCollection
-
no setter
- outerHTML ↔ String
-
getter/setter pairinherited
- outerText ↔ String
-
getter/setter pairinherited
- ownerDocument → Document?
-
no setterinherited
- parentElement → Element?
-
no setterinherited
- parentNode → Node?
-
no setterinherited
- popover ↔ String?
-
getter/setter pairinherited
- prefix → String?
-
no setterinherited
- previousElementSibling → Element?
-
no setterinherited
- previousSibling → Node?
-
no setterinherited
- required ↔ bool
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollHeight → int
-
no setterinherited
- scrollLeft ↔ num
-
getter/setter pairinherited
- scrollTop ↔ num
-
getter/setter pairinherited
- scrollWidth → int
-
no setterinherited
- selectedIndex ↔ int
-
getter/setter pair
- selectedOptions → HTMLCollection
-
no setter
- shadowRoot → ShadowRoot?
-
no setterinherited
- size ↔ int
-
getter/setter pair
- slot ↔ String
-
getter/setter pairinherited
- spellcheck ↔ bool
-
getter/setter pairinherited
- style → CSSStyleDeclaration
-
no setterinherited
- tabIndex ↔ int
-
getter/setter pairinherited
- tagName → String
-
no setterinherited
- text ← String
-
Available on Node, provided by the NodeGlue extension
no getter - textContent ↔ String?
-
getter/setter pairinherited
- title ↔ String
-
getter/setter pairinherited
- translate ↔ bool
-
getter/setter pairinherited
- type → String
-
no setter
- validationMessage → String
-
no setter
- validity → ValidityState
-
no setter
- value ↔ String
-
getter/setter pair
- willValidate → bool
-
no setter
Methods
-
add(
JSObject element, [JSAny? before]) → void -
The
HTMLSelectElement.add()
method adds an element to the collection ofoption
elements for thisselect
element. -
add(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
+any
-
addEventListener(
String type, EventListener? callback, [JSAny options]) → void -
The
addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.inherited -
after(
JSAny nodes) → void -
The
Element.after()
method inserts a set of Node or string objects in the children list of theElement
's parent, just after theElement
. String objects are inserted as equivalent Text nodes.inherited -
and(
JSAny? any) → JSAny? -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
&&any
-
animate(
JSObject? keyframes, [JSAny options]) → Animation -
The Element interface's
animate()
method is a shortcut method which creates a new Animation, applies it to the element, then plays the animation. It returns the created Animation object instance.inherited -
append(
Node other) → Node -
append(
JSAny nodes) → void -
The
Element.append()
method inserts a set of Node objects or string objects after the last child of theElement
. String objects are inserted as equivalent Text nodes.inherited -
appendChild(
Node node) → Node -
The
appendChild()
method of the Node interface adds a node to the end of the list of children of a specified parent node.inherited -
attachInternals(
) → ElementInternals -
The
HTMLElement.attachInternals()
method returns an ElementInternals object. This method allows a custom element to participate in HTML forms. TheElementInternals
interface provides utilities for working with these elements in the same way you would work with any standard HTML form element, and also exposes the Accessibility Object Model to the element.inherited -
attachShadow(
ShadowRootInit init) → ShadowRoot -
The
Element.attachShadow()
method attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.inherited -
before(
JSAny nodes) → void -
The
Element.before()
method inserts a set of Node or string objects in the children list of thisElement
's parent, just before thisElement
. String objects are inserted as equivalent Text nodes.inherited -
blur(
) → void -
The
HTMLElement.blur()
method removes keyboard focus from the current element.inherited -
callMethod<
R extends JSAny?> (JSAny method, [JSAny? arg1, JSAny? arg2, JSAny? arg3, JSAny? arg4]) → R -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Callsmethod
on this JSObject with up to four arguments. -
callMethodVarArgs<
R extends JSAny?> (JSAny method, [List< JSAny?> ? arguments]) → R -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Callsmethod
on this JSObject with a variable number ofarguments
. -
checkValidity(
) → bool -
The
HTMLSelectElement.checkValidity()
method checks whether the element has any constraints and whether it satisfies them. If the element fails its constraints, the browser fires a cancelableHTMLSelectElement/invalid_event
event at the element, and then returnsfalse
. -
checkVisibility(
[CheckVisibilityOptions options]) → bool -
The
checkVisibility()
method of the Element interface checks whether the element is visible.inherited -
click(
) → void -
The
HTMLElement.click()
method simulates a mouse click on an element.inherited -
clone(
bool? deep) → Node -
cloneNode(
[bool deep]) → Node -
The
cloneNode()
method of the Node interface returns a duplicate of the node on which this method was called. Its parameter controls if the subtree contained in a node is also cloned or not.inherited -
closest(
String selectors) → Element? -
The
closest()
method of the Element interface traverses the element and its parents (heading toward the document root) until it finds a node that matches the specified CSS selector.inherited -
compareDocumentPosition(
Node other) → int -
The
compareDocumentPosition()
method of the Node interface reports the position of its argument node relative to the node on which it is called.inherited -
computedStyleMap(
) → StylePropertyMapReadOnly -
The
computedStyleMap()
method of the Element interface returns a StylePropertyMapReadOnly interface which provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.inherited -
contains(
Node? other) → bool -
The
contains()
method of the Node interface returns a boolean value indicating whether a node is a descendant of a given node, that is the node itself, one of its direct children (Node.childNodes), one of the children's direct children, and so on.inherited -
convertPointFromNode(
DOMPointInit point, GeometryNode from, [ConvertCoordinateOptions options]) → DOMPoint -
inherited
-
convertQuadFromNode(
DOMQuadInit quad, GeometryNode from, [ConvertCoordinateOptions options]) → DOMQuad -
inherited
-
convertRectFromNode(
DOMRectReadOnly rect, GeometryNode from, [ConvertCoordinateOptions options]) → DOMQuad -
inherited
-
dartify(
) → Object? -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Converts a JavaScript value to the Dart equivalent if possible. -
delete(
JSAny property) → JSBoolean -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Deletes the property with keyproperty
from this JSObject. -
dispatchEvent(
Event event) → bool -
The
dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually withdispatchEvent()
.inherited -
divide(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
/any
-
equals(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
==any
-
exponentiate(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
**any
-
focus(
[FocusOptions options]) → void -
The
HTMLElement.focus()
method sets focus on the specified element, if it can be focused. The focused element is the element that will receive keyboard and similar events by default.inherited -
getAnimations(
[GetAnimationsOptions options]) → JSArray< Animation> -
The
getAnimations()
method of the Element interface (specified on theAnimatable
mixin) returns an array of all Animation objects affecting this element or which are scheduled to do so in future. It can optionally return Animation objects for descendant elements too.inherited -
getAttribute(
String qualifiedName) → String? -
The
getAttribute()
method of the Element interface returns the value of a specified attribute on the element.inherited -
getAttributeNames(
) → JSArray< JSString> -
The
getAttributeNames()
method of the Element interface returns the attribute names of the element as anArray
of strings. If the element has no attributes it returns an empty array.inherited -
getAttributeNode(
String qualifiedName) → Attr? -
Returns the specified attribute of the specified element, as an Attr
node.
inherited
-
getAttributeNodeNS(
String? namespace, String localName) → Attr? -
The
getAttributeNodeNS()
method of the Element interface returns the namespaced Attr node of an element.inherited -
getAttributeNS(
String? namespace, String localName) → String? -
The
getAttributeNS()
method of the Element interface returns the string value of the attribute with the specified namespace and name. If the named attribute does not exist, the value returned will either benull
or""
(the empty string); see Notes for details.inherited -
getBoundingClientRect(
) → DOMRect -
The
Element.getBoundingClientRect()
method returns a DOMRect object providing information about the size of an element and its position relative to the viewport.inherited -
getBoxQuads(
[BoxQuadOptions options]) → JSArray< DOMQuad> -
inherited
-
getClientRects(
) → DOMRectList -
The
getClientRects()
method of the Element interface returns a collection of DOMRect objects that indicate the bounding rectangles for each CSS border box in a client.inherited -
getElementsByClassName(
String classNames) → HTMLCollection -
The Element method
getElementsByClassName()
returns a live HTMLCollection which contains every descendant element which has the specified class name or names.inherited -
getElementsByTagName(
String qualifiedName) → HTMLCollection -
The
Element.getElementsByTagName()
method returns a live HTMLCollection of elements with the given tag name.inherited -
getElementsByTagNameNS(
String? namespace, String localName) → HTMLCollection -
The
Element.getElementsByTagNameNS()
method returns a live HTMLCollection of elements with the given tag name belonging to the given namespace. It is similar to Document.getElementsByTagNameNS, except that its search is restricted to descendants of the specified element.inherited -
getProperty<
R extends JSAny?> (JSAny property) → R -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
The value of the property keyproperty
of this JSObject. -
getRootNode(
[GetRootNodeOptions options]) → Node -
The
getRootNode()
method of the Node interface returns the context object's root, which optionally includes the shadow root if it is available.inherited -
greaterThan(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
>any
-
greaterThanOrEqualTo(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
>=any
-
has(
String property) → bool -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Shorthand helper for hasProperty to check whether this JSObject contains the property keyproperty
, but takes and returns a Dart value. -
hasAttribute(
String qualifiedName) → bool -
The
Element.hasAttribute()
method returns a Boolean value indicating whether the specified element has the specified attribute or not.inherited -
hasAttributeNS(
String? namespace, String localName) → bool -
The
hasAttributeNS()
method of the Element interface returns a boolean value indicating whether the current element has the specified attribute with the specified namespace.inherited -
hasAttributes(
) → bool -
The
hasAttributes()
method of the Element interface returns a boolean value indicating whether the current element has any attributes or not.inherited -
hasChildNodes(
) → bool -
The
hasChildNodes()
method of the Node interface returns a boolean value indicating whether the given Node has child nodes or not.inherited -
hasPointerCapture(
int pointerId) → bool -
The
hasPointerCapture()
method of the Element interface checks whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer ID.inherited -
hasProperty(
JSAny property) → JSBoolean -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Whether or not this JSObject contains the property keyproperty
. -
hidePopover(
) → void -
The
hidePopover()
method of the HTMLElement interface hides a popover element (i.e. one that has a validpopover
attribute) by removing it from the and styling it withdisplay: none
.inherited -
insertAdjacentElement(
String where, Element element) → Element? -
The
insertAdjacentElement()
method of the Element interface inserts a given element node at a given position relative to the element it is invoked upon.inherited -
insertAdjacentHTML(
String position, String text) → void -
The
insertAdjacentHTML()
method of the Element interface parses the specified text as HTML or XML and inserts the resulting nodes into the DOM tree at a specified position.inherited -
insertAdjacentText(
String where, String data) → void -
The
insertAdjacentText()
method of the Element interface, given a relative position and a string, inserts a new text node at the given position relative to the element it is called from.inherited -
insertBefore(
Node node, Node? child) → Node -
The
insertBefore()
method of the Node interface inserts a node before a reference node as a child of a specified parent node.inherited -
instanceof(
JSFunction constructor) → bool -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Whether thisJSAny?
is aninstanceof
constructor
. -
instanceOfString(
String constructorName) → bool -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Whether thisJSAny?
is aninstanceof
the constructor that is defined byconstructorName
, which is looked up in the globalContext. -
isA<
T extends JSAny?> () → bool -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Whether thisJSAny?
is an instance of the JavaScript type that is declared byT
. -
isDefaultNamespace(
String? namespace) → bool -
The
isDefaultNamespace()
method of the Node interface accepts a namespace URI as an argument. It returns a boolean value that istrue
if the namespace is the default namespace on the given node andfalse
if not.inherited -
isEqualNode(
Node? otherNode) → bool -
The
isEqualNode()
method of the Node interface tests whether two nodes are equal. Two nodes are equal when they have the same type, defining characteristics (for elements, this would be their ID, number of children, and so forth), its attributes match, and so on. The specific set of data points that must match varies depending on the types of the nodes.inherited -
isSameNode(
Node? otherNode) → bool -
The
isSameNode()
method of the Node interface is a legacy alias the for the===
strict equality operator. That is, it tests whether two nodes are the same (in other words, whether they reference the same object).inherited -
item(
int index) → HTMLOptionElement? -
The
HTMLSelectElement.item()
method returns the Element corresponding to the HTMLOptionElement whose position in the options list corresponds to the index given in the parameter, ornull
if there are none. -
lessThan(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
<any
-
lessThanOrEqualTo(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
<=any
-
lookupNamespaceURI(
String? prefix) → String? -
The
lookupNamespaceURI()
method of the Node interface takes a prefix as parameter and returns the namespace URI associated with it on the given node if found (andnull
if not).inherited -
lookupPrefix(
String? namespace) → String? -
The
lookupPrefix()
method of the Node interface returns a string containing the prefix for a given namespace URI, if present, andnull
if not. When multiple prefixes are possible, the first prefix is returned.inherited -
matches(
String selectors) → bool -
The
matches()
method of the Element interface tests whether the element would be selected by the specified CSS selector.inherited -
modulo(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
%any
-
multiply(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
*any
-
namedItem(
String name) → HTMLOptionElement? -
The
HTMLSelectElement.namedItem()
method returns the HTMLOptionElement corresponding to the HTMLOptionElement whosename
orid
match the specified name, ornull
if no option matches. -
normalize(
) → void -
The
normalize()
method of the Node interface puts the specified node and all of its sub-tree into a normalized form. In a normalized sub-tree, no text nodes in the sub-tree are empty and there are no adjacent text nodes.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notEquals(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
!=any
-
or(
JSAny? any) → JSAny? -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
||any
-
prepend(
JSAny nodes) → void -
The
Element.prepend()
method inserts a set of Node objects or string objects before the first child of the Element. String objects are inserted as equivalent Text nodes.inherited -
querySelector(
String selectors) → Element? -
The
querySelector()
method of the Element interface returns the first element that is a descendant of the element on which it is invoked that matches the specified group of selectors.inherited -
querySelectorAll(
String selectors) → NodeList -
The Element method
querySelectorAll()
returns a static (not live) NodeList representing a list of elements matching the specified group of selectors which are descendants of the element on which the method was called.inherited -
releasePointerCapture(
int pointerId) → void -
The
releasePointerCapture()
method of the Element interface releases (stops) pointer capture that was previously set for a specific (PointerEvent) pointer.inherited -
remove(
[int index]) → void -
The
HTMLSelectElement.remove()
method removes the element at the specified index from the options collection for this select element.override -
removeAttribute(
String qualifiedName) → void -
The Element method
removeAttribute()
removes the attribute with the specified name from the element.inherited -
removeAttributeNode(
Attr attr) → Attr -
The
removeAttributeNode()
method of the Element interface removes the specified Attr node from the element.inherited -
removeAttributeNS(
String? namespace, String localName) → void -
The
removeAttributeNS()
method of the Element interface removes the specified attribute with the specified namespace from an element.inherited -
removeChild(
Node child) → Node -
The
removeChild()
method of the Node interface removes a child node from the DOM and returns the removed node.inherited -
removeEventListener(
String type, EventListener? callback, [JSAny options]) → void -
The
removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.inherited -
replaceChild(
Node node, Node child) → Node -
The
replaceChild()
method of the Node interface replaces a child node within the given (parent) node.inherited -
replaceChildren(
JSAny nodes) → void -
The
Element.replaceChildren()
method replaces the existing children of a Node with a specified new set of children. These can be string or Node objects.inherited -
replaceWith(
JSAny nodes) → void -
The
Element.replaceWith()
method replaces thisElement
in the children list of its parent with a set of Node or string objects. String objects are inserted as equivalent Text nodes.inherited -
reportValidity(
) → bool -
scroll(
[JSAny optionsOrX, num y]) → void -
The
scroll()
method of the Element interface scrolls the element to a particular set of coordinates inside a given element.inherited -
scrollBy(
[JSAny optionsOrX, num y]) → void -
The
scrollBy()
method of the Element interface scrolls an element by the given amount.inherited -
scrollIntoView(
[JSAny arg]) → void -
The Element interface's
scrollIntoView()
method scrolls the element's ancestor containers such that the element on whichscrollIntoView()
is called is visible to the user.inherited -
scrollTo(
[JSAny optionsOrX, num y]) → void -
The
scrollTo()
method of the Element interface scrolls to a particular set of coordinates inside a given element.inherited -
setAttribute(
String qualifiedName, String value) → void -
Sets the value of an attribute on the specified element. If
the attribute already exists, the value is updated; otherwise a new
attribute is added
with the specified name and value.
inherited
-
setAttributeNode(
Attr attr) → Attr? -
The
setAttributeNode()
method of the Element interface adds a new Attr node to the specified element.inherited -
setAttributeNodeNS(
Attr attr) → Attr? -
The
setAttributeNodeNS()
method of the Element interface adds a new namespaced Attr node to an element.inherited -
setAttributeNS(
String? namespace, String qualifiedName, String value) → void -
setAttributeNS
adds a new attribute or changes the value of an attribute with the given namespace and name.inherited -
setCustomValidity(
String error) → void -
The
HTMLSelectElement.setCustomValidity()
method sets the custom validity message for the selection element to the specified message. Use the empty string to indicate that the element does not have a custom validity error. -
setHTMLUnsafe(
String html) → void -
inherited
-
setPointerCapture(
int pointerId) → void -
The
setPointerCapture()
method of the Element interface is used to designate a specific element as the capture target of future pointer events. Subsequent events for the pointer will be targeted at the capture element until capture is released (via Element.releasePointerCapture or theElement/pointerup_event
event is fired).inherited -
setProperty(
JSAny property, JSAny? value) → void -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Write thevalue
of property keyproperty
of this JSObject. -
showPicker(
) → void -
The
HTMLSelectElement.showPicker()
method displays the browser picker for aselect
element. -
showPopover(
) → void -
The
showPopover()
method of the HTMLElement interface shows aPopover_API
element (i.e. one that has a validpopover
attribute) by adding it to the .inherited -
strictEquals(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
===any
-
strictNotEquals(
JSAny? any) → JSBoolean -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
!==any
-
subtract(
JSAny? any) → JSAny -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
-any
-
toggleAttribute(
String qualifiedName, [bool force]) → bool -
The
toggleAttribute()
method of the Element interface toggles a Boolean attribute (removing it if it is present and adding it if it is not present) on the given element.inherited -
togglePopover(
[bool force]) → bool -
The
togglePopover()
method of the HTMLElement interface toggles aPopover_API
element (i.e. one that has a validpopover
attribute) between the hidden and showing states.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
typeofEquals(
String typeString) → bool -
Available on JSAny?, provided by the JSAnyUtilityExtension extension
Whether the result oftypeof
on thisJSAny?
istypeString
. -
unsignedRightShift(
JSAny? any) → JSNumber -
Available on JSAny?, provided by the JSAnyOperatorExtension extension
The result of
in JavaScript.this
>>>any
-
webkitMatchesSelector(
String selectors) → bool -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String property) → JSAny? -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Shorthand helper for getProperty to get the value of the property keyproperty
of this JSObject, but takes and returns a Dart value. -
operator []=(
String property, JSAny? value) → void -
Available on JSObject, provided by the JSObjectUnsafeUtilExtension extension
Shorthand helper for setProperty to write thevalue
of the property keyproperty
of this JSObject, but takes a Dart value.