Class: HTMLProjectionElement
Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.
Extends
Constructors
new HTMLProjectionElement()
new HTMLProjectionElement():
HTMLProjectionElement
Returns
Overrides
HTMLElement.constructor
Properties
__evolv__
__evolv__:
MutateContext
Inherited from
accessKey
accessKey:
string
Inherited from
accessKeyLabel
readonly
accessKeyLabel:string
Inherited from
ariaAtomic
ariaAtomic:
null
|string
Inherited from
ariaAutoComplete
ariaAutoComplete:
null
|string
Inherited from
ariaBrailleLabel
ariaBrailleLabel:
null
|string
Inherited from
ariaBrailleRoleDescription
ariaBrailleRoleDescription:
null
|string
Inherited from
HTMLElement
.ariaBrailleRoleDescription
ariaBusy
ariaBusy:
null
|string
Inherited from
ariaChecked
ariaChecked:
null
|string
Inherited from
ariaColCount
ariaColCount:
null
|string
Inherited from
ariaColIndex
ariaColIndex:
null
|string
Inherited from
ariaColSpan
ariaColSpan:
null
|string
Inherited from
ariaCurrent
ariaCurrent:
null
|string
Inherited from
ariaDescription
ariaDescription:
null
|string
Inherited from
ariaDisabled
ariaDisabled:
null
|string
Inherited from
ariaExpanded
ariaExpanded:
null
|string
Inherited from
ariaHasPopup
ariaHasPopup:
null
|string
Inherited from
ariaHidden
ariaHidden:
null
|string
Inherited from
ariaInvalid
ariaInvalid:
null
|string
Inherited from
ariaKeyShortcuts
ariaKeyShortcuts:
null
|string
Inherited from
ariaLabel
ariaLabel:
null
|string
Inherited from
ariaLevel
ariaLevel:
null
|string
Inherited from
ariaLive
ariaLive:
null
|string
Inherited from
ariaModal
ariaModal:
null
|string
Inherited from
ariaMultiLine
ariaMultiLine:
null
|string
Inherited from
ariaMultiSelectable
ariaMultiSelectable:
null
|string
Inherited from
HTMLElement
.ariaMultiSelectable
ariaOrientation
ariaOrientation:
null
|string
Inherited from
ariaPlaceholder
ariaPlaceholder:
null
|string
Inherited from
ariaPosInSet
ariaPosInSet:
null
|string
Inherited from
ariaPressed
ariaPressed:
null
|string
Inherited from
ariaReadOnly
ariaReadOnly:
null
|string
Inherited from
ariaRequired
ariaRequired:
null
|string
Inherited from
ariaRoleDescription
ariaRoleDescription:
null
|string
Inherited from
HTMLElement
.ariaRoleDescription
ariaRowCount
ariaRowCount:
null
|string
Inherited from
ariaRowIndex
ariaRowIndex:
null
|string
Inherited from
ariaRowSpan
ariaRowSpan:
null
|string
Inherited from
ariaSelected
ariaSelected:
null
|string
Inherited from
ariaSetSize
ariaSetSize:
null
|string
Inherited from
ariaSort
ariaSort:
null
|string
Inherited from
ariaValueMax
ariaValueMax:
null
|string
Inherited from
ariaValueMin
ariaValueMin:
null
|string
Inherited from
ariaValueNow
ariaValueNow:
null
|string
Inherited from
ariaValueText
ariaValueText:
null
|string
Inherited from
assignedSlot
readonly
assignedSlot:null
|HTMLSlotElement
Inherited from
ATTRIBUTE_NODE
readonly
ATTRIBUTE_NODE:2
Inherited from
attributes
readonly
attributes:NamedNodeMap
Inherited from
attributeStyleMap
readonly
attributeStyleMap:StylePropertyMap
Inherited from
autocapitalize
autocapitalize:
string
Inherited from
autofocus
autofocus:
boolean
Inherited from
baseURI
readonly
baseURI:string
Returns node's node document's document base URL.
Inherited from
CDATA_SECTION_NODE
readonly
CDATA_SECTION_NODE:4
node is a CDATASection node.
Inherited from
HTMLElement
.CDATA_SECTION_NODE
childElementCount
readonly
childElementCount:number
Inherited from
childNodes
readonly
childNodes:NodeListOf
<ChildNode
>
Returns the children.
Inherited from
children
readonly
children:HTMLCollection
Returns the child elements.
Inherited from
classList
readonly
classList:DOMTokenList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
Inherited from
className
className:
string
Returns the value of element's class content attribute. Can be set to change it.
Inherited from
clientHeight
readonly
clientHeight:number
Inherited from
clientLeft
readonly
clientLeft:number
Inherited from
clientTop
readonly
clientTop:number
Inherited from
clientWidth
readonly
clientWidth:number
Inherited from
COMMENT_NODE
readonly
COMMENT_NODE:8
node is a Comment node.
Inherited from
contentEditable
contentEditable:
string
Inherited from
dataset
readonly
dataset:DOMStringMap
Inherited from
dir
dir:
string
Inherited from
DOCUMENT_FRAGMENT_NODE
readonly
DOCUMENT_FRAGMENT_NODE:11
node is a DocumentFragment node.
Inherited from
HTMLElement
.DOCUMENT_FRAGMENT_NODE
DOCUMENT_NODE
readonly
DOCUMENT_NODE:9
node is a document.
Inherited from
DOCUMENT_POSITION_CONTAINED_BY
readonly
DOCUMENT_POSITION_CONTAINED_BY:16
Set when other is a descendant of node.
Inherited from
HTMLElement
.DOCUMENT_POSITION_CONTAINED_BY
DOCUMENT_POSITION_CONTAINS
readonly
DOCUMENT_POSITION_CONTAINS:8
Set when other is an ancestor of node.
Inherited from
HTMLElement
.DOCUMENT_POSITION_CONTAINS
DOCUMENT_POSITION_DISCONNECTED
readonly
DOCUMENT_POSITION_DISCONNECTED:1
Set when node and other are not in the same tree.
Inherited from
HTMLElement
.DOCUMENT_POSITION_DISCONNECTED
DOCUMENT_POSITION_FOLLOWING
readonly
DOCUMENT_POSITION_FOLLOWING:4
Set when other is following node.
Inherited from
HTMLElement
.DOCUMENT_POSITION_FOLLOWING
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
readonly
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32
Inherited from
HTMLElement
.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
DOCUMENT_POSITION_PRECEDING
readonly
DOCUMENT_POSITION_PRECEDING:2
Set when other is preceding node.
Inherited from
HTMLElement
.DOCUMENT_POSITION_PRECEDING
DOCUMENT_TYPE_NODE
readonly
DOCUMENT_TYPE_NODE:10
node is a doctype.
Inherited from
HTMLElement
.DOCUMENT_TYPE_NODE
draggable
draggable:
boolean
Inherited from
ELEMENT_NODE
readonly
ELEMENT_NODE:1
node is an element.
Inherited from
enterKeyHint
enterKeyHint:
string
Inherited from
ENTITY_NODE
readonly
ENTITY_NODE:6
Inherited from
ENTITY_REFERENCE_NODE
readonly
ENTITY_REFERENCE_NODE:5
Inherited from
HTMLElement
.ENTITY_REFERENCE_NODE
firstChild
readonly
firstChild:null
|ChildNode
Returns the first child.
Inherited from
firstElementChild
readonly
firstElementChild:null
|Element
Returns the first child that is an element, and null otherwise.
Inherited from
hidden
hidden:
boolean
Inherited from
id
id:
string
Returns the value of element's id content attribute. Can be set to change it.
Inherited from
inert
inert:
boolean
Inherited from
innerHTML
innerHTML:
string
Inherited from
innerText
innerText:
string
Inherited from
inputMode
inputMode:
string
Inherited from
isConnected
readonly
isConnected:boolean
Returns true if node is connected and false otherwise.
Inherited from
isContentEditable
readonly
isContentEditable:boolean
Inherited from
lang
lang:
string
Inherited from
lastChild
readonly
lastChild:null
|ChildNode
Returns the last child.
Inherited from
lastElementChild
readonly
lastElementChild:null
|Element
Returns the last child that is an element, and null otherwise.
Inherited from
localName
readonly
localName:string
Returns the local name.
Inherited from
namespaceURI
readonly
namespaceURI:null
|string
Returns the namespace.
Inherited from
nextElementSibling
readonly
nextElementSibling:null
|Element
Returns the first following sibling that is an element, and null otherwise.
Inherited from
HTMLElement
.nextElementSibling
nextSibling
readonly
nextSibling:null
|ChildNode
Returns the next sibling.
Inherited from
nodeName
readonly
nodeName:string
Returns a string appropriate for the type of node.
Inherited from
nodeType
readonly
nodeType:number
Returns the type of node.
Inherited from
nodeValue
nodeValue:
null
|string
Inherited from
nonce?
optional
nonce:string
Inherited from
NOTATION_NODE
readonly
NOTATION_NODE:12
Inherited from
offsetHeight
readonly
offsetHeight:number
Inherited from
offsetLeft
readonly
offsetLeft:number
Inherited from
offsetParent
readonly
offsetParent:null
|Element
Inherited from
offsetTop
readonly
offsetTop:number
Inherited from
offsetWidth
readonly
offsetWidth:number
Inherited from
onabort
onabort:
null
| (this
,ev
) =>any
Fires when the user aborts the download.
Param
The event.
Inherited from
onanimationcancel
onanimationcancel:
null
| (this
,ev
) =>any
Inherited from
onanimationend
onanimationend:
null
| (this
,ev
) =>any
Inherited from
onanimationiteration
onanimationiteration:
null
| (this
,ev
) =>any
Inherited from
HTMLElement
.onanimationiteration
onanimationstart
onanimationstart:
null
| (this
,ev
) =>any
Inherited from
onauxclick
onauxclick:
null
| (this
,ev
) =>any
Inherited from
onbeforeinput
onbeforeinput:
null
| (this
,ev
) =>any
Inherited from
onbeforetoggle
onbeforetoggle:
null
| (this
,ev
) =>any
Inherited from
onblur
onblur:
null
| (this
,ev
) =>any
Fires when the object loses the input focus.
Param
The focus event.
Inherited from
oncancel
oncancel:
null
| (this
,ev
) =>any
Inherited from
oncanplay
oncanplay:
null
| (this
,ev
) =>any
Occurs when playback is possible, but would require further buffering.
Param
The event.
Inherited from
oncanplaythrough
oncanplaythrough:
null
| (this
,ev
) =>any
Inherited from
onchange
onchange:
null
| (this
,ev
) =>any
Fires when the contents of the object or selection have changed.
Param
The event.
Inherited from
onclick
onclick:
null
| (this
,ev
) =>any
Fires when the user clicks the left mouse button on the object
Param
The mouse event.
Inherited from
onclose
onclose:
null
| (this
,ev
) =>any
Inherited from
oncontextlost
oncontextlost:
null
| (this
,ev
) =>any
Inherited from
oncontextmenu
oncontextmenu:
null
| (this
,ev
) =>any
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Param
The mouse event.
Inherited from
oncontextrestored
oncontextrestored:
null
| (this
,ev
) =>any
Inherited from
oncopy
oncopy:
null
| (this
,ev
) =>any
Inherited from
oncuechange
oncuechange:
null
| (this
,ev
) =>any
Inherited from
oncut
oncut:
null
| (this
,ev
) =>any
Inherited from
ondblclick
ondblclick:
null
| (this
,ev
) =>any
Fires when the user double-clicks the object.
Param
The mouse event.
Inherited from
ondrag
ondrag:
null
| (this
,ev
) =>any
Fires on the source object continuously during a drag operation.
Param
The event.
Inherited from
ondragend
ondragend:
null
| (this
,ev
) =>any
Fires on the source object when the user releases the mouse at the close of a drag operation.
Param
The event.
Inherited from
ondragenter
ondragenter:
null
| (this
,ev
) =>any
Fires on the target element when the user drags the object to a valid drop target.
Param
The drag event.
Inherited from
ondragleave
ondragleave:
null
| (this
,ev
) =>any
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Param
The drag event.
Inherited from
ondragover
ondragover:
null
| (this
,ev
) =>any
Fires on the target element continuously while the user drags the object over a valid drop target.
Param
The event.
Inherited from
ondragstart
ondragstart:
null
| (this
,ev
) =>any
Fires on the source object when the user starts to drag a text selection or selected object.
Param
The event.
Inherited from
ondrop
ondrop:
null
| (this
,ev
) =>any
Inherited from
ondurationchange
ondurationchange:
null
| (this
,ev
) =>any
Occurs when the duration attribute is updated.
Param
The event.
Inherited from
onemptied
onemptied:
null
| (this
,ev
) =>any
Occurs when the media element is reset to its initial state.
Param
The event.
Inherited from
onended
onended:
null
| (this
,ev
) =>any
Occurs when the end of playback is reached.
Param
The event
Inherited from
onerror
onerror:
OnErrorEventHandler
Fires when an error occurs during object loading.
Param
The event.
Inherited from
onfocus
onfocus:
null
| (this
,ev
) =>any
Fires when the object receives focus.
Param
The event.
Inherited from
onformdata
onformdata:
null
| (this
,ev
) =>any
Inherited from
onfullscreenchange
onfullscreenchange:
null
| (this
,ev
) =>any
Inherited from
HTMLElement
.onfullscreenchange
onfullscreenerror
onfullscreenerror:
null
| (this
,ev
) =>any
Inherited from
ongotpointercapture
ongotpointercapture:
null
| (this
,ev
) =>any
Inherited from
HTMLElement
.ongotpointercapture
oninput
oninput:
null
| (this
,ev
) =>any
Inherited from
oninvalid
oninvalid:
null
| (this
,ev
) =>any
Inherited from
onkeydown
onkeydown:
null
| (this
,ev
) =>any
Fires when the user presses a key.
Param
The keyboard event
Inherited from
onkeypress
onkeypress:
null
| (this
,ev
) =>any
Fires when the user presses an alphanumeric key.
Param
The event.
Deprecated
Inherited from
onkeyup
onkeyup:
null
| (this
,ev
) =>any
Fires when the user releases a key.
Param
The keyboard event
Inherited from
onload
onload:
null
| (this
,ev
) =>any
Fires immediately after the browser loads the object.
Param
The event.
Inherited from
onloadeddata
onloadeddata:
null
| (this
,ev
) =>any
Occurs when media data is loaded at the current playback position.
Param
The event.
Inherited from
onloadedmetadata
onloadedmetadata:
null
| (this
,ev
) =>any
Occurs when the duration and dimensions of the media have been determined.
Param
The event.
Inherited from
onloadstart
onloadstart:
null
| (this
,ev
) =>any
Occurs when Internet Explorer begins looking for media data.
Param
The event.
Inherited from
onlostpointercapture
onlostpointercapture:
null
| (this
,ev
) =>any
Inherited from
HTMLElement
.onlostpointercapture
onmousedown
onmousedown:
null
| (this
,ev
) =>any
Fires when the user clicks the object with either mouse button.
Param
The mouse event.
Inherited from
onmouseenter
onmouseenter:
null
| (this
,ev
) =>any
Inherited from
onmouseleave
onmouseleave:
null
| (this
,ev
) =>any
Inherited from
onmousemove
onmousemove:
null
| (this
,ev
) =>any
Fires when the user moves the mouse over the object.
Param
The mouse event.
Inherited from
onmouseout
onmouseout:
null
| (this
,ev
) =>any
Fires when the user moves the mouse pointer outside the boundaries of the object.
Param
The mouse event.
Inherited from
onmouseover
onmouseover:
null
| (this
,ev
) =>any
Fires when the user moves the mouse pointer into the object.
Param
The mouse event.
Inherited from
onmouseup
onmouseup:
null
| (this
,ev
) =>any
Fires when the user releases a mouse button while the mouse is over the object.
Param
The mouse event.
Inherited from
onpaste
onpaste:
null
| (this
,ev
) =>any
Inherited from
onpause
onpause:
null
| (this
,ev
) =>any
Occurs when playback is paused.
Param
The event.
Inherited from
onplay
onplay:
null
| (this
,ev
) =>any
Occurs when the play method is requested.
Param
The event.
Inherited from
onplaying
onplaying:
null
| (this
,ev
) =>any
Occurs when the audio or video has started playing.
Param
The event.
Inherited from
onpointercancel
onpointercancel:
null
| (this
,ev
) =>any
Inherited from
onpointerdown
onpointerdown:
null
| (this
,ev
) =>any
Inherited from
onpointerenter
onpointerenter:
null
| (this
,ev
) =>any
Inherited from
onpointerleave
onpointerleave:
null
| (this
,ev
) =>any
Inherited from
onpointermove
onpointermove:
null
| (this
,ev
) =>any
Inherited from
onpointerout
onpointerout:
null
| (this
,ev
) =>any
Inherited from
onpointerover
onpointerover:
null
| (this
,ev
) =>any
Inherited from
onpointerup
onpointerup:
null
| (this
,ev
) =>any
Inherited from
onprogress
onprogress:
null
| (this
,ev
) =>any
Occurs to indicate progress while downloading media data.
Param
The event.
Inherited from
onratechange
onratechange:
null
| (this
,ev
) =>any
Occurs when the playback rate is increased or decreased.
Param
The event.
Inherited from
onreset
onreset:
null
| (this
,ev
) =>any
Fires when the user resets a form.
Param
The event.
Inherited from
onresize
onresize:
null
| (this
,ev
) =>any
Inherited from
onscroll
onscroll:
null
| (this
,ev
) =>any
Fires when the user repositions the scroll box in the scroll bar on the object.
Param
The event.
Inherited from
onscrollend
onscrollend:
null
| (this
,ev
) =>any
Inherited from
onsecuritypolicyviolation
onsecuritypolicyviolation:
null
| (this
,ev
) =>any
Inherited from
HTMLElement
.onsecuritypolicyviolation
onseeked
onseeked:
null
| (this
,ev
) =>any
Occurs when the seek operation ends.
Param
The event.
Inherited from
onseeking
onseeking:
null
| (this
,ev
) =>any
Occurs when the current playback position is moved.
Param
The event.
Inherited from
onselect
onselect:
null
| (this
,ev
) =>any
Fires when the current selection changes.
Param
The event.
Inherited from
onselectionchange
onselectionchange:
null
| (this
,ev
) =>any
Inherited from
onselectstart
onselectstart:
null
| (this
,ev
) =>any
Inherited from
onslotchange
onslotchange:
null
| (this
,ev
) =>any
Inherited from
onstalled
onstalled:
null
| (this
,ev
) =>any
Occurs when the download has stopped.
Param
The event.
Inherited from
onsubmit
onsubmit:
null
| (this
,ev
) =>any
Inherited from
onsuspend
onsuspend:
null
| (this
,ev
) =>any
Occurs if the load operation has been intentionally halted.
Param
The event.
Inherited from
ontimeupdate
ontimeupdate:
null
| (this
,ev
) =>any
Occurs to indicate the current playback position.
Param
The event.
Inherited from
ontoggle
ontoggle:
null
| (this
,ev
) =>any
Inherited from
ontouchcancel?
optional
ontouchcancel:null
| (this
,ev
) =>any
Inherited from
ontouchend?
optional
ontouchend:null
| (this
,ev
) =>any
Inherited from
ontouchmove?
optional
ontouchmove:null
| (this
,ev
) =>any
Inherited from
ontouchstart?
optional
ontouchstart:null
| (this
,ev
) =>any
Inherited from
ontransitioncancel
ontransitioncancel:
null
| (this
,ev
) =>any
Inherited from
HTMLElement
.ontransitioncancel
ontransitionend
ontransitionend:
null
| (this
,ev
) =>any
Inherited from
ontransitionrun
ontransitionrun:
null
| (this
,ev
) =>any
Inherited from
ontransitionstart
ontransitionstart:
null
| (this
,ev
) =>any
Inherited from
onvolumechange
onvolumechange:
null
| (this
,ev
) =>any
Occurs when the volume is changed, or playback is muted or unmuted.
Param
The event.
Inherited from
onwaiting
onwaiting:
null
| (this
,ev
) =>any
Occurs when playback stops because the next frame of a video resource is not available.
Param
The event.
Inherited from
onwebkitanimationend
onwebkitanimationend:
null
| (this
,ev
) =>any
Deprecated
This is a legacy alias of onanimationend
.
Inherited from
HTMLElement
.onwebkitanimationend
onwebkitanimationiteration
onwebkitanimationiteration:
null
| (this
,ev
) =>any
Deprecated
This is a legacy alias of onanimationiteration
.
Inherited from
HTMLElement
.onwebkitanimationiteration
onwebkitanimationstart
onwebkitanimationstart:
null
| (this
,ev
) =>any
Deprecated
This is a legacy alias of onanimationstart
.
Inherited from
HTMLElement
.onwebkitanimationstart
onwebkittransitionend
onwebkittransitionend:
null
| (this
,ev
) =>any
Deprecated
This is a legacy alias of ontransitionend
.
Inherited from
HTMLElement
.onwebkittransitionend
onwheel
onwheel:
null
| (this
,ev
) =>any
Inherited from
outerHTML
outerHTML:
string
Inherited from
outerText
outerText:
string
Inherited from
ownerDocument
readonly
ownerDocument:Document
Returns the node document. Returns null for documents.
Inherited from
parentElement
readonly
parentElement:null
|HTMLElement
Returns the parent element.
Inherited from
parentNode
readonly
parentNode:null
|ParentNode
Returns the parent.
Inherited from
part
readonly
part:DOMTokenList
Inherited from
popover
popover:
null
|string
Inherited from
prefix
readonly
prefix:null
|string
Returns the namespace prefix.
Inherited from
previousElementSibling
readonly
previousElementSibling:null
|Element
Returns the first preceding sibling that is an element, and null otherwise.
Inherited from
HTMLElement
.previousElementSibling
previousSibling
readonly
previousSibling:null
|ChildNode
Returns the previous sibling.
Inherited from
PROCESSING_INSTRUCTION_NODE
readonly
PROCESSING_INSTRUCTION_NODE:7
node is a ProcessingInstruction node.
Inherited from
HTMLElement
.PROCESSING_INSTRUCTION_NODE
role
role:
null
|string
Inherited from
scrollHeight
readonly
scrollHeight:number
Inherited from
scrollLeft
scrollLeft:
number
Inherited from
scrollTop
scrollTop:
number
Inherited from
scrollWidth
readonly
scrollWidth:number
Inherited from
shadowRoot
readonly
shadowRoot:null
|ShadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
Inherited from
slot
slot:
string
Returns the value of element's slot content attribute. Can be set to change it.
Inherited from
spellcheck
spellcheck:
boolean
Inherited from
style
readonly
style:CSSStyleDeclaration
Inherited from
tabIndex
tabIndex:
number
Inherited from
tagName
readonly
tagName:string
Returns the HTML-uppercased qualified name.
Inherited from
TEXT_NODE
readonly
TEXT_NODE:3
node is a Text node.
Inherited from
textContent
textContent:
null
|string
Inherited from
title
title:
string
Inherited from
translate
translate:
boolean
Inherited from
Methods
addEventListener()
Call Signature
addEventListener<
K
>(type
,listener
,options
?):void
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementEventMap |
Parameters
Parameter | Type |
---|---|
type | K |
listener | (this , ev ) => any |
options ? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
Call Signature
addEventListener(
type
,listener
,options
?):void
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.
When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
Parameters
Parameter | Type |
---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options ? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
after()
after(...
nodes
):void
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Parameter | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
animate()
animate(
keyframes
,options
?):Animation
Parameters
Parameter | Type |
---|---|
keyframes | null | Keyframe [] | PropertyIndexedKeyframes |
options ? | number | KeyframeAnimationOptions |
Returns
Animation
Inherited from
append()
append(...
nodes
):void
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Parameter | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
appendChild()
appendChild<
T
>(node
):T
Type Parameters
Type Parameter |
---|
T extends Node |
Parameters
Parameter | Type |
---|---|
node | T |
Returns
T
Inherited from
attachInternals()
attachInternals():
ElementInternals
Returns
ElementInternals
Inherited from
attachShadow()
attachShadow(
init
):ShadowRoot
Creates a shadow root for element and returns it.
Parameters
Parameter | Type |
---|---|
init | ShadowRootInit |
Returns
ShadowRoot
Inherited from
before()
before(...
nodes
):void
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Parameter | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
blur()
blur():
void
Returns
void
Inherited from
checkVisibility()
checkVisibility(
options
?):boolean
Parameters
Parameter | Type |
---|---|
options ? | CheckVisibilityOptions |
Returns
boolean
Inherited from
click()
click():
void
Returns
void
Inherited from
cloneNode()
cloneNode(
deep
?):Node
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
Parameters
Parameter | Type |
---|---|
deep ? | boolean |
Returns
Node
Inherited from
closest()
Call Signature
closest<
K
>(selector
):null
|HTMLElementTagNameMap
[K
]
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selector | K |
Returns
null
| HTMLElementTagNameMap
[K
]
Inherited from
Call Signature
closest<
K
>(selector
):null
|SVGElementTagNameMap
[K
]
Type Parameters
Type Parameter |
---|
K extends keyof SVGElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selector | K |
Returns
null
| SVGElementTagNameMap
[K
]
Inherited from
Call Signature
closest<
K
>(selector
):null
|MathMLElementTagNameMap
[K
]
Type Parameters
Type Parameter |
---|
K extends keyof MathMLElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selector | K |
Returns
null
| MathMLElementTagNameMap
[K
]
Inherited from
Call Signature
closest<
E
>(selectors
):null
|E
Type Parameters
Type Parameter | Default type |
---|---|
E extends Element | Element |
Parameters
Parameter | Type |
---|---|
selectors | string |
Returns
null
| E
Inherited from
compareDocumentPosition()
compareDocumentPosition(
other
):number
Returns a bitmask indicating the position of other relative to node.
Parameters
Parameter | Type |
---|---|
other | Node |
Returns
number
Inherited from
HTMLElement
.compareDocumentPosition
computedStyleMap()
computedStyleMap():
StylePropertyMapReadOnly
Returns
StylePropertyMapReadOnly
Inherited from
contains()
contains(
other
):boolean
Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters
Parameter | Type |
---|---|
other | null | Node |
Returns
boolean
Inherited from
dispatchEvent()
dispatchEvent(
event
):boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
Parameter | Type |
---|---|
event | Event |
Returns
boolean
Inherited from
focus()
focus(
options
?):void
Parameters
Parameter | Type |
---|---|
options ? | FocusOptions |
Returns
void
Inherited from
getAnimations()
getAnimations(
options
?):Animation
[]
Parameters
Parameter | Type |
---|---|
options ? | GetAnimationsOptions |
Returns
Animation
[]
Inherited from
getAttribute()
getAttribute(
qualifiedName
):null
|string
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Parameters
Parameter | Type |
---|---|
qualifiedName | string |
Returns
null
| string
Inherited from
getAttributeNames()
getAttributeNames():
string
[]
Returns the qualified names of all element's attributes. Can contain duplicates.
Returns
string
[]
Inherited from
getAttributeNode()
getAttributeNode(
qualifiedName
):null
|Attr
Parameters
Parameter | Type |
---|---|
qualifiedName | string |
Returns
null
| Attr
Inherited from
getAttributeNodeNS()
getAttributeNodeNS(
namespace
,localName
):null
|Attr
Parameters
Parameter | Type |
---|---|
namespace | null | string |
localName | string |
Returns
null
| Attr
Inherited from
HTMLElement
.getAttributeNodeNS
getAttributeNS()
getAttributeNS(
namespace
,localName
):null
|string
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Parameters
Parameter | Type |
---|---|
namespace | null | string |
localName | string |
Returns
null
| string
Inherited from
getBoundingClientRect()
getBoundingClientRect():
DOMRect
Returns
DOMRect
Inherited from
HTMLElement
.getBoundingClientRect
getClientRects()
getClientRects():
DOMRectList
Returns
DOMRectList
Inherited from
getElementsByClassName()
getElementsByClassName(
classNames
):HTMLCollectionOf
<Element
>
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
Parameters
Parameter | Type |
---|---|
classNames | string |
Returns
HTMLCollectionOf
<Element
>
Inherited from
HTMLElement
.getElementsByClassName
getElementsByTagName()
Call Signature
getElementsByTagName<
K
>(qualifiedName
):HTMLCollectionOf
<HTMLElementTagNameMap
[K
]>
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementTagNameMap |
Parameters
Parameter | Type |
---|---|
qualifiedName | K |
Returns
HTMLCollectionOf
<HTMLElementTagNameMap
[K
]>
Inherited from
HTMLElement
.getElementsByTagName
Call Signature
getElementsByTagName<
K
>(qualifiedName
):HTMLCollectionOf
<SVGElementTagNameMap
[K
]>
Type Parameters
Type Parameter |
---|
K extends keyof SVGElementTagNameMap |
Parameters
Parameter | Type |
---|---|
qualifiedName | K |
Returns
HTMLCollectionOf
<SVGElementTagNameMap
[K
]>
Inherited from
HTMLElement
.getElementsByTagName
Call Signature
getElementsByTagName<
K
>(qualifiedName
):HTMLCollectionOf
<MathMLElementTagNameMap
[K
]>
Type Parameters
Type Parameter |
---|
K extends keyof MathMLElementTagNameMap |
Parameters
Parameter | Type |
---|---|
qualifiedName | K |
Returns
HTMLCollectionOf
<MathMLElementTagNameMap
[K
]>
Inherited from
HTMLElement
.getElementsByTagName
Call Signature
getElementsByTagName<
K
>(qualifiedName
):HTMLCollectionOf
<HTMLElementDeprecatedTagNameMap
[K
]>
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters
Parameter | Type |
---|---|
qualifiedName | K |
Returns
HTMLCollectionOf
<HTMLElementDeprecatedTagNameMap
[K
]>
Deprecated
Inherited from
HTMLElement
.getElementsByTagName
Call Signature
getElementsByTagName(
qualifiedName
):HTMLCollectionOf
<Element
>
Parameters
Parameter | Type |
---|---|
qualifiedName | string |
Returns
HTMLCollectionOf
<Element
>
Inherited from
HTMLElement
.getElementsByTagName
getElementsByTagNameNS()
Call Signature
getElementsByTagNameNS(
namespaceURI
,localName
):HTMLCollectionOf
<HTMLElement
>
Parameters
Parameter | Type |
---|---|
namespaceURI | "http://www.w3.org/1999/xhtml" |
localName | string |
Returns
HTMLCollectionOf
<HTMLElement
>
Inherited from
HTMLElement
.getElementsByTagNameNS
Call Signature
getElementsByTagNameNS(
namespaceURI
,localName
):HTMLCollectionOf
<SVGElement
>
Parameters
Parameter | Type |
---|---|
namespaceURI | "http://www.w3.org/2000/svg" |
localName | string |
Returns
HTMLCollectionOf
<SVGElement
>
Inherited from
HTMLElement
.getElementsByTagNameNS
Call Signature
getElementsByTagNameNS(
namespaceURI
,localName
):HTMLCollectionOf
<MathMLElement
>
Parameters
Parameter | Type |
---|---|
namespaceURI | "http://www.w3.org/1998/Math/MathML" |
localName | string |
Returns
HTMLCollectionOf
<MathMLElement
>
Inherited from
HTMLElement
.getElementsByTagNameNS
Call Signature
getElementsByTagNameNS(
namespace
,localName
):HTMLCollectionOf
<Element
>
Parameters
Parameter | Type |
---|---|
namespace | null | string |
localName | string |
Returns
HTMLCollectionOf
<Element
>
Inherited from
HTMLElement
.getElementsByTagNameNS
getHTML()
getHTML(
options
?):string
Parameters
Parameter | Type |
---|---|
options ? | GetHTMLOptions |
Returns
string
Inherited from
getRootNode()
getRootNode(
options
?):Node
Returns node's root.
Parameters
Parameter | Type |
---|---|
options ? | GetRootNodeOptions |
Returns
Node
Inherited from
hasAttribute()
hasAttribute(
qualifiedName
):boolean
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
Parameters
Parameter | Type |
---|---|
qualifiedName | string |
Returns
boolean
Inherited from
hasAttributeNS()
hasAttributeNS(
namespace
,localName
):boolean
Returns true if element has an attribute whose namespace is namespace and local name is localName.
Parameters
Parameter | Type |
---|---|
namespace | null | string |
localName | string |
Returns
boolean
Inherited from
hasAttributes()
hasAttributes():
boolean
Returns true if element has attributes, and false otherwise.
Returns
boolean
Inherited from
hasChildNodes()
hasChildNodes():
boolean
Returns whether node has children.
Returns
boolean
Inherited from
hasPointerCapture()
hasPointerCapture(
pointerId
):boolean
Parameters
Parameter | Type |
---|---|
pointerId | number |
Returns
boolean
Inherited from
hidePopover()
hidePopover():
void
Returns
void
Inherited from
insertAdjacentElement()
insertAdjacentElement(
where
,element
):null
|Element
Parameters
Parameter | Type |
---|---|
where | InsertPosition |
element | Element |
Returns
null
| Element
Inherited from
HTMLElement
.insertAdjacentElement
insertAdjacentHTML()
insertAdjacentHTML(
position
,string
):void
Parameters
Parameter | Type |
---|---|
position | InsertPosition |
string | string |
Returns
void
Inherited from
HTMLElement
.insertAdjacentHTML
insertAdjacentText()
insertAdjacentText(
where
,data
):void
Parameters
Parameter | Type |
---|---|
where | InsertPosition |
data | string |
Returns
void
Inherited from
HTMLElement
.insertAdjacentText
insertBefore()
insertBefore<
T
>(node
,child
):T
Type Parameters
Type Parameter |
---|
T extends Node |
Parameters
Parameter | Type |
---|---|
node | T |
child | null | Node |
Returns
T
Inherited from
isDefaultNamespace()
isDefaultNamespace(
namespace
):boolean
Parameters
Parameter | Type |
---|---|
namespace | null | string |
Returns
boolean
Inherited from
HTMLElement
.isDefaultNamespace
isEqualNode()
isEqualNode(
otherNode
):boolean
Returns whether node and otherNode have the same properties.
Parameters
Parameter | Type |
---|---|
otherNode | null | Node |
Returns
boolean
Inherited from
isSameNode()
isSameNode(
otherNode
):boolean
Parameters
Parameter | Type |
---|---|
otherNode | null | Node |
Returns
boolean
Inherited from
lookupNamespaceURI()
lookupNamespaceURI(
prefix
):null
|string
Parameters
Parameter | Type |
---|---|
prefix | null | string |
Returns
null
| string
Inherited from
HTMLElement
.lookupNamespaceURI
lookupPrefix()
lookupPrefix(
namespace
):null
|string
Parameters
Parameter | Type |
---|---|
namespace | null | string |
Returns
null
| string
Inherited from
matches()
matches(
selectors
):boolean
Returns true if matching selectors against element's root yields element, and false otherwise.
Parameters
Parameter | Type |
---|---|
selectors | string |
Returns
boolean
Inherited from
normalize()
normalize():
void
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
Returns
void
Inherited from
prepend()
prepend(...
nodes
):void
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Parameter | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
querySelector()
Call Signature
querySelector<
K
>(selectors
):null
|HTMLElementTagNameMap
[K
]
Returns the first element that is a descendant of node that matches selectors.
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selectors | K |
Returns
null
| HTMLElementTagNameMap
[K
]
Inherited from
Call Signature
querySelector<
K
>(selectors
):null
|SVGElementTagNameMap
[K
]
Type Parameters
Type Parameter |
---|
K extends keyof SVGElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selectors | K |
Returns
null
| SVGElementTagNameMap
[K
]
Inherited from
Call Signature
querySelector<
K
>(selectors
):null
|MathMLElementTagNameMap
[K
]
Type Parameters
Type Parameter |
---|
K extends keyof MathMLElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selectors | K |
Returns
null
| MathMLElementTagNameMap
[K
]
Inherited from
Call Signature
querySelector<
K
>(selectors
):null
|HTMLElementDeprecatedTagNameMap
[K
]
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters
Parameter | Type |
---|---|
selectors | K |
Returns
null
| HTMLElementDeprecatedTagNameMap
[K
]
Deprecated
Inherited from
Call Signature
querySelector<
E
>(selectors
):null
|E
Type Parameters
Type Parameter | Default type |
---|---|
E extends Element | Element |
Parameters
Parameter | Type |
---|---|
selectors | string |
Returns
null
| E
Inherited from
querySelectorAll()
Call Signature
querySelectorAll<
K
>(selectors
):NodeListOf
<HTMLElementTagNameMap
[K
]>
Returns all element descendants of node that match selectors.
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selectors | K |
Returns
NodeListOf
<HTMLElementTagNameMap
[K
]>
Inherited from
Call Signature
querySelectorAll<
K
>(selectors
):NodeListOf
<SVGElementTagNameMap
[K
]>
Type Parameters
Type Parameter |
---|
K extends keyof SVGElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selectors | K |
Returns
NodeListOf
<SVGElementTagNameMap
[K
]>
Inherited from
Call Signature
querySelectorAll<
K
>(selectors
):NodeListOf
<MathMLElementTagNameMap
[K
]>
Type Parameters
Type Parameter |
---|
K extends keyof MathMLElementTagNameMap |
Parameters
Parameter | Type |
---|---|
selectors | K |
Returns
NodeListOf
<MathMLElementTagNameMap
[K
]>
Inherited from
Call Signature
querySelectorAll<
K
>(selectors
):NodeListOf
<HTMLElementDeprecatedTagNameMap
[K
]>
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementDeprecatedTagNameMap |
Parameters
Parameter | Type |
---|---|
selectors | K |
Returns
NodeListOf
<HTMLElementDeprecatedTagNameMap
[K
]>
Deprecated
Inherited from
Call Signature
querySelectorAll<
E
>(selectors
):NodeListOf
<E
>
Type Parameters
Type Parameter | Default type |
---|---|
E extends Element | Element |
Parameters
Parameter | Type |
---|---|
selectors | string |
Returns
NodeListOf
<E
>
Inherited from
releasePointerCapture()
releasePointerCapture(
pointerId
):void
Parameters
Parameter | Type |
---|---|
pointerId | number |
Returns
void
Inherited from
HTMLElement
.releasePointerCapture
remove()
remove():
void
Removes node.
Returns
void
Inherited from
removeAttribute()
removeAttribute(
qualifiedName
):void
Removes element's first attribute whose qualified name is qualifiedName.
Parameters
Parameter | Type |
---|---|
qualifiedName | string |
Returns
void
Inherited from
removeAttributeNode()
removeAttributeNode(
attr
):Attr
Parameters
Parameter | Type |
---|---|
attr | Attr |
Returns
Attr
Inherited from
HTMLElement
.removeAttributeNode
removeAttributeNS()
removeAttributeNS(
namespace
,localName
):void
Removes element's attribute whose namespace is namespace and local name is localName.
Parameters
Parameter | Type |
---|---|
namespace | null | string |
localName | string |
Returns
void
Inherited from
removeChild()
removeChild<
T
>(child
):T
Type Parameters
Type Parameter |
---|
T extends Node |
Parameters
Parameter | Type |
---|---|
child | T |
Returns
T
Inherited from
removeEventListener()
Call Signature
removeEventListener<
K
>(type
,listener
,options
?):void
Removes the event listener in target's event listener list with the same type, callback, and options.
Type Parameters
Type Parameter |
---|
K extends keyof HTMLElementEventMap |
Parameters
Parameter | Type |
---|---|
type | K |
listener | (this , ev ) => any |
options ? | boolean | EventListenerOptions |
Returns
void
Inherited from
HTMLElement
.removeEventListener
Call Signature
removeEventListener(
type
,listener
,options
?):void
Removes the event listener in target's event listener list with the same type, callback, and options.
Parameters
Parameter | Type |
---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options ? | boolean | EventListenerOptions |
Returns
void
Inherited from
HTMLElement
.removeEventListener
replaceChild()
replaceChild<
T
>(node
,child
):T
Type Parameters
Type Parameter |
---|
T extends Node |
Parameters
Parameter | Type |
---|---|
node | Node |
child | T |
Returns
T
Inherited from
replaceChildren()
replaceChildren(...
nodes
):void
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Parameter | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
replaceWith()
replaceWith(...
nodes
):void
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Parameter | Type |
---|---|
...nodes | (string | Node )[] |
Returns
void
Inherited from
requestFullscreen()
requestFullscreen(
options
?):Promise
<void
>
Displays element fullscreen and resolves promise when done.
When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
Parameters
Parameter | Type |
---|---|
options ? | FullscreenOptions |
Returns
Promise
<void
>
Inherited from
requestPointerLock()
requestPointerLock(
options
?):Promise
<void
>
Parameters
Parameter | Type |
---|---|
options ? | PointerLockOptions |
Returns
Promise
<void
>
Inherited from
HTMLElement
.requestPointerLock
scroll()
Call Signature
scroll(
options
?):void
Parameters
Parameter | Type |
---|---|
options ? | ScrollToOptions |
Returns
void
Inherited from
Call Signature
scroll(
x
,y
):void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
scrollBy()
Call Signature
scrollBy(
options
?):void
Parameters
Parameter | Type |
---|---|
options ? | ScrollToOptions |
Returns
void
Inherited from
Call Signature
scrollBy(
x
,y
):void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
scrollIntoView()
scrollIntoView(
arg
?):void
Parameters
Parameter | Type |
---|---|
arg ? | boolean | ScrollIntoViewOptions |
Returns
void
Inherited from
scrollTo()
Call Signature
scrollTo(
options
?):void
Parameters
Parameter | Type |
---|---|
options ? | ScrollToOptions |
Returns
void
Inherited from
Call Signature
scrollTo(
x
,y
):void
Parameters
Parameter | Type |
---|---|
x | number |
y | number |
Returns
void
Inherited from
setAttribute()
setAttribute(
qualifiedName
,value
):void
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
Parameters
Parameter | Type |
---|---|
qualifiedName | string |
value | string |
Returns
void
Inherited from
setAttributeNode()
setAttributeNode(
attr
):null
|Attr
Parameters
Parameter | Type |
---|---|
attr | Attr |
Returns
null
| Attr
Inherited from
setAttributeNodeNS()
setAttributeNodeNS(
attr
):null
|Attr
Parameters
Parameter | Type |
---|---|
attr | Attr |
Returns
null
| Attr
Inherited from
HTMLElement
.setAttributeNodeNS
setAttributeNS()
setAttributeNS(
namespace
,qualifiedName
,value
):void
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
Parameters
Parameter | Type |
---|---|
namespace | null | string |
qualifiedName | string |
value | string |
Returns
void
Inherited from
setHTMLUnsafe()
setHTMLUnsafe(
html
):void
Parameters
Parameter | Type |
---|---|
html | string |
Returns
void
Inherited from
setPointerCapture()
setPointerCapture(
pointerId
):void
Parameters
Parameter | Type |
---|---|
pointerId | number |
Returns
void
Inherited from
showPopover()
showPopover():
void
Returns
void
Inherited from
toggleAttribute()
toggleAttribute(
qualifiedName
,force
?):boolean
If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present, and false otherwise.
Parameters
Parameter | Type |
---|---|
qualifiedName | string |
force ? | boolean |
Returns
boolean
Inherited from
togglePopover()
togglePopover(
force
?):boolean
Parameters
Parameter | Type |
---|---|
force ? | boolean |
Returns
boolean
Inherited from
webkitMatchesSelector()
webkitMatchesSelector(
selectors
):boolean
Parameters
Parameter | Type |
---|---|
selectors | string |
Returns
boolean
Deprecated
This is a legacy alias of matches
.