Element
Overview
Element is the most general base class from which all element objects (i.e. objects that represent elements) in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.WebAssembly.DOM
- Platforms: WebAssembly
- Ancestry: Node | Element
addEventListener (dynamic, dynamic) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(partype: dynamic; parlistener: dynamic)
void addEventListener(dynamic partype, dynamic parlistener)
func addEventListener(_ partype: dynamic, _ parlistener: dynamic)
void addEventListener(dynamic partype, dynamic parlistener)
Sub addEventListener(partype As dynamic, parlistener As dynamic)
Parameters:
- partype:
- parlistener:
addEventListener (dynamic, dynamic, dynamic, dynamic, dynamic, dynamic)
Registers an event handler to a specific event type on the element.
method addEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; parcapture: dynamic; paronce: dynamic; parpassive: dynamic)
void addEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic parcapture, dynamic paronce, dynamic parpassive)
func addEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ parcapture: dynamic, _ paronce: dynamic, _ parpassive: dynamic)
void addEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic parcapture, dynamic paronce, dynamic parpassive)
Sub addEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, parcapture As dynamic, paronce As dynamic, parpassive As dynamic)
Parameters:
- partype:
- parlistener:
- paroptions:
- parcapture:
- paronce:
- parpassive:
addEventListener (dynamic, dynamic, dynamic) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(type: dynamic; listener: dynamic; options: dynamic)
void addEventListener(dynamic type, dynamic listener, dynamic options)
func addEventListener(_ type: dynamic, _ listener: dynamic, _ options: dynamic)
void addEventListener(dynamic type, dynamic listener, dynamic options)
Sub addEventListener(type As dynamic, listener As dynamic, options As dynamic)
Parameters:
- type:
- listener:
- options:
addEventListener (dynamic, dynamic, Boolean) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(type: dynamic; listener: dynamic; useCapture: Boolean)
void addEventListener(dynamic type, dynamic listener, Boolean useCapture)
func addEventListener(_ type: dynamic, _ listener: dynamic, _ useCapture: Boolean)
void addEventListener(dynamic type, dynamic listener, Boolean useCapture)
Sub addEventListener(type As dynamic, listener As dynamic, useCapture As Boolean)
Parameters:
- type:
- listener:
- useCapture:
appendChild (declared in Node)
Adds the specified childNode argument as the last child to the current node. If the argument referenced an existing node on the DOM tree, the node will be detached from its current position and attached at the new position.
method appendChild(paraChild: dynamic): Node
Node appendChild(dynamic paraChild)
func appendChild(_ paraChild: dynamic) -> Node
Node appendChild(dynamic paraChild)
Function appendChild(paraChild As dynamic) As Node
Parameters:
- paraChild:
attachShadow
Attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.
method attachShadow(parshadowRootInit: dynamic; parmode: dynamic; pardelegatesFocus: dynamic): ShadowRoot
ShadowRoot attachShadow(dynamic parshadowRootInit, dynamic parmode, dynamic pardelegatesFocus)
func attachShadow(_ parshadowRootInit: dynamic, _ parmode: dynamic, _ pardelegatesFocus: dynamic) -> ShadowRoot
ShadowRoot attachShadow(dynamic parshadowRootInit, dynamic parmode, dynamic pardelegatesFocus)
Function attachShadow(parshadowRootInit As dynamic, parmode As dynamic, pardelegatesFocus As dynamic) As ShadowRoot
Parameters:
- parshadowRootInit:
- parmode:
- pardelegatesFocus:
attributes
property attributes: NamedNodeMap read;
NamedNodeMap attributes { get; }
var attributes: NamedNodeMap { get{} }
NamedNodeMap attributes { __get; }
ReadOnly Property attributes() As NamedNodeMap
baseURI (declared in Node)
property baseURI: String read;
String baseURI { get; }
var baseURI: String { get{} }
String baseURI { __get; }
ReadOnly Property baseURI() As String
childNodes (declared in Node)
property childNodes: Node read;
Node childNodes { get; }
var childNodes: Node { get{} }
Node childNodes { __get; }
ReadOnly Property childNodes() As Node
classList
property classList: DOMTokenList read;
DOMTokenList classList { get; }
var classList: DOMTokenList { get{} }
DOMTokenList classList { __get; }
ReadOnly Property classList() As DOMTokenList
className
property className: String read write;
String className { get; set; }
var className: String { get{} set{} }
String className { __get; __set; }
Property className() As String
clientHeight
property clientHeight: Int32 read;
Int32 clientHeight { get; }
var clientHeight: Int32 { get{} }
Int32 clientHeight { __get; }
ReadOnly Property clientHeight() As Int32
clientLeft
property clientLeft: HTMLElement read;
HTMLElement clientLeft { get; }
var clientLeft: HTMLElement { get{} }
HTMLElement clientLeft { __get; }
ReadOnly Property clientLeft() As HTMLElement
clientTop
property clientTop: HTMLElement read;
HTMLElement clientTop { get; }
var clientTop: HTMLElement { get{} }
HTMLElement clientTop { __get; }
ReadOnly Property clientTop() As HTMLElement
clientWidth
property clientWidth: Int32 read;
Int32 clientWidth { get; }
var clientWidth: Int32 { get{} }
Int32 clientWidth { __get; }
ReadOnly Property clientWidth() As Int32
cloneNode (declared in Node)
Clone a Node, and optionally, all of its contents. By default, it clones the content of the node.
method cloneNode par(pardeep: dynamic): Node
Node cloneNode par(dynamic pardeep)
func cloneNode(par pardeep: dynamic) -> Node
Node cloneNode par(dynamic pardeep)
Function cloneNode par(pardeep As dynamic) As Node
Parameters:
- pardeep:
compareDocumentPosition (declared in Node)
Compares the position of the current node against another node in any other document.
method compareDocumentPosition(parotherNode: dynamic): Int32
Int32 compareDocumentPosition(dynamic parotherNode)
func compareDocumentPosition(_ parotherNode: dynamic) -> Int32
Int32 compareDocumentPosition(dynamic parotherNode)
Function compareDocumentPosition(parotherNode As dynamic) As Int32
Parameters:
- parotherNode:
computedName
property computedName: String read;
String computedName { get; }
var computedName: String { get{} }
String computedName { __get; }
ReadOnly Property computedName() As String
computedRole
property computedRole: String read;
String computedRole { get; }
var computedRole: String { get{} }
String computedRole { __get; }
ReadOnly Property computedRole() As String
contains (declared in Node)
Returns a Boolean value indicating whether or not a node is a descendant of the calling node.
method contains(parotherNode: dynamic): Boolean
Boolean contains(dynamic parotherNode)
func contains(_ parotherNode: dynamic) -> Boolean
Boolean contains(dynamic parotherNode)
Function contains(parotherNode As dynamic) As Boolean
Parameters:
- parotherNode:
dispatchEvent
Dispatches an event to this node in the DOM and returns a Boolean that indicates whether no handler canceled the event.
method dispatchEvent(parevent: dynamic): dynamic
dynamic dispatchEvent(dynamic parevent)
func dispatchEvent(_ parevent: dynamic) -> dynamic
dynamic dispatchEvent(dynamic parevent)
Function dispatchEvent(parevent As dynamic) As dynamic
Parameters:
- parevent:
firstChild (declared in Node)
property firstChild: Node read;
Node firstChild { get; }
var firstChild: Node { get{} }
Node firstChild { __get; }
ReadOnly Property firstChild() As Node
getAttribute
Retrieves the value of the attribute with the specified name, from the current node and returns it as an Object.
method getAttribute(parname: dynamic): String
String getAttribute(dynamic parname)
func getAttribute(_ parname: dynamic) -> String
String getAttribute(dynamic parname)
Function getAttribute(parname As dynamic) As String
Parameters:
- parname:
getAttributeNS
Retrieves the value of the attribute with the specified name and namespace, from the current node and returns it as an Object.
method getAttributeNS(parnamespace: dynamic; parname: dynamic): String
String getAttributeNS(dynamic parnamespace, dynamic parname)
func getAttributeNS(_ parnamespace: dynamic, _ parname: dynamic) -> String
String getAttributeNS(dynamic parnamespace, dynamic parname)
Function getAttributeNS(parnamespace As dynamic, parname As dynamic) As String
Parameters:
- parnamespace:
- parname:
getBoundingClientRect
Returns the size of an element and its position relative to the viewport.
method getBoundingClientRect: DOMRect
DOMRect getBoundingClientRect()
func getBoundingClientRect() -> DOMRect
DOMRect getBoundingClientRect()
Function getBoundingClientRect() As DOMRect
getClientRects
Returns a collection of rectangles that indicate the bounding rectangles for each line of text in a client.
method getClientRects: DOMRect
DOMRect getClientRects()
func getClientRects() -> DOMRect
DOMRect getClientRects()
Function getClientRects() As DOMRect
getElementsByClassName
Returns a live HTMLCollection that contains all descendants of the current element that possess the list of classes given in the parameter.
method getElementsByClassName(parnames: dynamic): HTMLCollection
HTMLCollection getElementsByClassName(dynamic parnames)
func getElementsByClassName(_ parnames: dynamic) -> HTMLCollection
HTMLCollection getElementsByClassName(dynamic parnames)
Function getElementsByClassName(parnames As dynamic) As HTMLCollection
Parameters:
- parnames:
getElementsByTagName
Returns a live HTMLCollection containing all descendant elements, of a particular tag name, from the current element.
method getElementsByTagName(partagName: dynamic): HTMLCollection
HTMLCollection getElementsByTagName(dynamic partagName)
func getElementsByTagName(_ partagName: dynamic) -> HTMLCollection
HTMLCollection getElementsByTagName(dynamic partagName)
Function getElementsByTagName(partagName As dynamic) As HTMLCollection
Parameters:
- partagName:
getElementsByTagNameNS
Returns a live HTMLCollection containing all descendant elements, of a particular tag name and namespace, from the current element.
method getElementsByTagNameNS(parnamespaceURI: dynamic; parlocalName: dynamic): HTMLCollection
HTMLCollection getElementsByTagNameNS(dynamic parnamespaceURI, dynamic parlocalName)
func getElementsByTagNameNS(_ parnamespaceURI: dynamic, _ parlocalName: dynamic) -> HTMLCollection
HTMLCollection getElementsByTagNameNS(dynamic parnamespaceURI, dynamic parlocalName)
Function getElementsByTagNameNS(parnamespaceURI As dynamic, parlocalName As dynamic) As HTMLCollection
Parameters:
- parnamespaceURI:
- parlocalName:
getRootNode (declared in Node)
Returns the context object's root which optionally includes the shadow root if it is available.
method getRootNode(paroptions: dynamic): Node
Node getRootNode(dynamic paroptions)
func getRootNode(_ paroptions: dynamic) -> Node
Node getRootNode(dynamic paroptions)
Function getRootNode(paroptions As dynamic) As Node
Parameters:
- paroptions:
hasAttribute
Returns a Boolean indicating if the element has the specified attribute or not.
method hasAttribute(parname: dynamic): HTMLElement
HTMLElement hasAttribute(dynamic parname)
func hasAttribute(_ parname: dynamic) -> HTMLElement
HTMLElement hasAttribute(dynamic parname)
Function hasAttribute(parname As dynamic) As HTMLElement
Parameters:
- parname:
hasAttributeNS
Returns a Boolean indicating if the element has the specified attribute, in the specified namespace, or not.
method hasAttributeNS(parnamespace: dynamic; localName: dynamic): HTMLElement
HTMLElement hasAttributeNS(dynamic parnamespace, dynamic localName)
func hasAttributeNS(_ parnamespace: dynamic, _ localName: dynamic) -> HTMLElement
HTMLElement hasAttributeNS(dynamic parnamespace, dynamic localName)
Function hasAttributeNS(parnamespace As dynamic, localName As dynamic) As HTMLElement
Parameters:
- parnamespace:
- localName:
hasAttributes
Returns a Boolean indicating if the element has one or more HTML attributes present.
method hasAttributes: HTMLElement
HTMLElement hasAttributes()
func hasAttributes() -> HTMLElement
HTMLElement hasAttributes()
Function hasAttributes() As HTMLElement
hasChildNodes (declared in Node)
Returns a Boolean indicating whether or not the element has any child nodes.
method hasChildNodes: Node
Node hasChildNodes()
func hasChildNodes() -> Node
Node hasChildNodes()
Function hasChildNodes() As Node
hasPointerCapture
Indicates whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer ID.
method hasPointerCapture(parpointerId: dynamic): HTMLElement
HTMLElement hasPointerCapture(dynamic parpointerId)
func hasPointerCapture(_ parpointerId: dynamic) -> HTMLElement
HTMLElement hasPointerCapture(dynamic parpointerId)
Function hasPointerCapture(parpointerId As dynamic) As HTMLElement
Parameters:
- parpointerId:
id
property id: String read write;
String id { get; set; }
var id: String { get{} set{} }
String id { __get; __set; }
Property id() As String
innerHTML
property innerHTML: String read write;
String innerHTML { get; set; }
var innerHTML: String { get{} set{} }
String innerHTML { __get; __set; }
Property innerHTML() As String
insertAdjacentElement
Inserts a given element node at a given position relative to the element it is invoked upon.
method insertAdjacentElement(parposition: dynamic; parelement: dynamic): HTMLElement
HTMLElement insertAdjacentElement(dynamic parposition, dynamic parelement)
func insertAdjacentElement(_ parposition: dynamic, _ parelement: dynamic) -> HTMLElement
HTMLElement insertAdjacentElement(dynamic parposition, dynamic parelement)
Function insertAdjacentElement(parposition As dynamic, parelement As dynamic) As HTMLElement
Parameters:
- parposition:
- parelement:
insertAdjacentHTML
Parses the text as HTML or XML and inserts the resulting nodes into the tree in the position given.
method insertAdjacentHTML(parposition: dynamic; partext: dynamic): String
String insertAdjacentHTML(dynamic parposition, dynamic partext)
func insertAdjacentHTML(_ parposition: dynamic, _ partext: dynamic) -> String
String insertAdjacentHTML(dynamic parposition, dynamic partext)
Function insertAdjacentHTML(parposition As dynamic, partext As dynamic) As String
Parameters:
- parposition:
- partext:
insertAdjacentText
Inserts a given text node at a given position relative to the element it is invoked upon.
method insertAdjacentText(parposition: dynamic; parelement: dynamic): HTMLElement
HTMLElement insertAdjacentText(dynamic parposition, dynamic parelement)
func insertAdjacentText(_ parposition: dynamic, _ parelement: dynamic) -> HTMLElement
HTMLElement insertAdjacentText(dynamic parposition, dynamic parelement)
Function insertAdjacentText(parposition As dynamic, parelement As dynamic) As HTMLElement
Parameters:
- parposition:
- parelement:
insertBefore (declared in Node)
Inserts a Node before the reference node as a child of a specified parent node.
method insertBefore(parnewNode: dynamic; parreferenceNode: dynamic): Node
Node insertBefore(dynamic parnewNode, dynamic parreferenceNode)
func insertBefore(_ parnewNode: dynamic, _ parreferenceNode: dynamic) -> Node
Node insertBefore(dynamic parnewNode, dynamic parreferenceNode)
Function insertBefore(parnewNode As dynamic, parreferenceNode As dynamic) As Node
Parameters:
- parnewNode:
- parreferenceNode:
isConnected (declared in Node)
property isConnected: Boolean read;
Boolean isConnected { get; }
var isConnected: Boolean { get{} }
Boolean isConnected { __get; }
ReadOnly Property isConnected() As Boolean
isDefaultNamespace (declared in Node)
Accepts a namespace URI as an argument and returns a Boolean with a value of true if the namespace is the default namespace on the given node or false if not.
method isDefaultNamespace: Boolean
Boolean isDefaultNamespace()
func isDefaultNamespace() -> Boolean
Boolean isDefaultNamespace()
Function isDefaultNamespace() As Boolean
isEqualNode (declared in Node)
Returns a Boolean which indicates whether or not two nodes are of the same type and all their defining data points match.
Parameters:
- parotherNode:
isSameNode (declared in Node)
Returns a Boolean value indicating whether or not the two nodes are the same (that is, they reference the same object).
method isSameNode: Node
Node isSameNode()
func isSameNode() -> Node
Node isSameNode()
Function isSameNode() As Node
lastChild (declared in Node)
property lastChild: Node read;
Node lastChild { get; }
var lastChild: Node { get{} }
Node lastChild { __get; }
ReadOnly Property lastChild() As Node
localName
property localName: String read;
String localName { get; }
var localName: String { get{} }
String localName { __get; }
ReadOnly Property localName() As String
lookupNamespaceURI (declared in Node)
Accepts a prefix and returns the namespace URI associated with it on the given node if found (and null if not). Supplying null for the prefix will return the default namespace.
method lookupNamespaceURI(parprefix: dynamic)
void lookupNamespaceURI(dynamic parprefix)
func lookupNamespaceURI(_ parprefix: dynamic)
void lookupNamespaceURI(dynamic parprefix)
Sub lookupNamespaceURI(parprefix As dynamic)
Parameters:
- parprefix:
namespaceURI
property namespaceURI: String read;
String namespaceURI { get; }
var namespaceURI: String { get{} }
String namespaceURI { __get; }
ReadOnly Property namespaceURI() As String
nextSibling (declared in Node)
property nextSibling: Node read;
Node nextSibling { get; }
var nextSibling: Node { get{} }
Node nextSibling { __get; }
ReadOnly Property nextSibling() As Node
nodeName (declared in Node)
property nodeName: Node read;
Node nodeName { get; }
var nodeName: Node { get{} }
Node nodeName { __get; }
ReadOnly Property nodeName() As Node
nodeValue (declared in Node)
property nodeValue: Node read write;
Node nodeValue { get; set; }
var nodeValue: Node { get{} set{} }
Node nodeValue { __get; __set; }
Property nodeValue() As Node
normalize (declared in Node)
Clean up all the text nodes under this element (merge adjacent, remove empty).
method normalize: String
String normalize()
func normalize() -> String
String normalize()
Function normalize() As String
onfullscreenchange
property onfullscreenchange: dynamic read write;
dynamic onfullscreenchange { get; set; }
var onfullscreenchange: dynamic { get{} set{} }
dynamic onfullscreenchange { __get; __set; }
Property onfullscreenchange() As dynamic
onfullscreenerror
property onfullscreenerror: dynamic read write;
dynamic onfullscreenerror { get; set; }
var onfullscreenerror: dynamic { get{} set{} }
dynamic onfullscreenerror { __get; __set; }
Property onfullscreenerror() As dynamic
outerHTML
property outerHTML: String read write;
String outerHTML { get; set; }
var outerHTML: String { get{} set{} }
String outerHTML { __get; __set; }
Property outerHTML() As String
ownerDocument (declared in Node)
property ownerDocument: Document read;
Document ownerDocument { get; }
var ownerDocument: Document { get{} }
Document ownerDocument { __get; }
ReadOnly Property ownerDocument() As Document
parentElement (declared in Node)
property parentElement: Element read;
Element parentElement { get; }
var parentElement: Element { get{} }
Element parentElement { __get; }
ReadOnly Property parentElement() As Element
parentNode (declared in Node)
property parentNode: Node read;
Node parentNode { get; }
var parentNode: Node { get{} }
Node parentNode { __get; }
ReadOnly Property parentNode() As Node
part
property part: DOMTokenList read write;
DOMTokenList part { get; set; }
var part: DOMTokenList { get{} set{} }
DOMTokenList part { __get; __set; }
Property part() As DOMTokenList
prefix
property prefix: String read;
String prefix { get; }
var prefix: String { get{} }
String prefix { __get; }
ReadOnly Property prefix() As String
previousSibling (declared in Node)
property previousSibling: Node read;
Node previousSibling { get; }
var previousSibling: Node { get{} }
Node previousSibling { __get; }
ReadOnly Property previousSibling() As Node
querySelector
Returns the first Node which matches the specified selector string relative to the element.
method querySelector(parselectors: dynamic): Element
Element querySelector(dynamic parselectors)
func querySelector(_ parselectors: dynamic) -> Element
Element querySelector(dynamic parselectors)
Function querySelector(parselectors As dynamic) As Element
Parameters:
- parselectors:
querySelectorAll
Returns a NodeList of nodes which match the specified selector string relative to the element.
method querySelectorAll(parselectors: dynamic): HTMLElement
HTMLElement querySelectorAll(dynamic parselectors)
func querySelectorAll(_ parselectors: dynamic) -> HTMLElement
HTMLElement querySelectorAll(dynamic parselectors)
Function querySelectorAll(parselectors As dynamic) As HTMLElement
Parameters:
- parselectors:
releasePointerCapture
Releases (stops) pointer capture that was previously set for a specific pointer event.
method releasePointerCapture(parpointerId: dynamic)
void releasePointerCapture(dynamic parpointerId)
func releasePointerCapture(_ parpointerId: dynamic)
void releasePointerCapture(dynamic parpointerId)
Sub releasePointerCapture(parpointerId As dynamic)
Parameters:
- parpointerId:
removeAttribute
Removes the named attribute from the current node.
method removeAttribute(parattrName: dynamic)
void removeAttribute(dynamic parattrName)
func removeAttribute(_ parattrName: dynamic)
void removeAttribute(dynamic parattrName)
Sub removeAttribute(parattrName As dynamic)
Parameters:
- parattrName:
removeEventListener
Removes an event listener from the element.
method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic
dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)
func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic
dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)
Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic
Parameters:
- partype:
- parlistener:
- paroptions:
- paruseCapture:
replaceChild (declared in Node)
Replaces one child Node of the current one with the second one given in parameter.
method replaceChild(parnewChild: dynamic; paroldChild: dynamic): Node
Node replaceChild(dynamic parnewChild, dynamic paroldChild)
func replaceChild(_ parnewChild: dynamic, _ paroldChild: dynamic) -> Node
Node replaceChild(dynamic parnewChild, dynamic paroldChild)
Function replaceChild(parnewChild As dynamic, paroldChild As dynamic) As Node
Parameters:
- parnewChild:
- paroldChild:
scrollHeight
property scrollHeight: Int32 read;
Int32 scrollHeight { get; }
var scrollHeight: Int32 { get{} }
Int32 scrollHeight { __get; }
ReadOnly Property scrollHeight() As Int32
scrollLeft
property scrollLeft: HTMLElement read write;
HTMLElement scrollLeft { get; set; }
var scrollLeft: HTMLElement { get{} set{} }
HTMLElement scrollLeft { __get; __set; }
Property scrollLeft() As HTMLElement
scrollTop
property scrollTop: Int32 read write;
Int32 scrollTop { get; set; }
var scrollTop: Int32 { get{} set{} }
Int32 scrollTop { __get; __set; }
Property scrollTop() As Int32
scrollWidth
property scrollWidth: Int32 read;
Int32 scrollWidth { get; }
var scrollWidth: Int32 { get{} }
Int32 scrollWidth { __get; }
ReadOnly Property scrollWidth() As Int32
setAttribute
Sets the value of a named attribute of the current node.
method setAttribute(parname: dynamic; parvalue: dynamic)
void setAttribute(dynamic parname, dynamic parvalue)
func setAttribute(_ parname: dynamic, _ parvalue: dynamic)
void setAttribute(dynamic parname, dynamic parvalue)
Sub setAttribute(parname As dynamic, parvalue As dynamic)
Parameters:
- parname:
- parvalue:
setPointerCapture
Designates a specific element as the capture target of future pointer events.
method setPointerCapture(parpointerId: dynamic)
void setPointerCapture(dynamic parpointerId)
func setPointerCapture(_ parpointerId: dynamic)
void setPointerCapture(dynamic parpointerId)
Sub setPointerCapture(parpointerId As dynamic)
Parameters:
- parpointerId:
shadowRoot
property shadowRoot: HTMLElement read;
HTMLElement shadowRoot { get; }
var shadowRoot: HTMLElement { get{} }
HTMLElement shadowRoot { __get; }
ReadOnly Property shadowRoot() As HTMLElement
tagName
property tagName: String read;
String tagName { get; }
var tagName: String { get{} }
String tagName { __get; }
ReadOnly Property tagName() As String
textContent (declared in Node)
property textContent: String read write;
String textContent { get; set; }
var textContent: String { get{} set{} }
String textContent { __get; __set; }
Property textContent() As String
toggleAttribute
Toggles a boolean attribute, removing it if it is present and adding it if it is not present, on the specified element.
method toggleAttribute(parname: dynamic; parforce: dynamic): Boolean
Boolean toggleAttribute(dynamic parname, dynamic parforce)
func toggleAttribute(_ parname: dynamic, _ parforce: dynamic) -> Boolean
Boolean toggleAttribute(dynamic parname, dynamic parforce)
Function toggleAttribute(parname As dynamic, parforce As dynamic) As Boolean
Parameters:
- parname:
- parforce:
attributes
property attributes: NamedNodeMap read;
NamedNodeMap attributes { get; }
var attributes: NamedNodeMap { get{} }
NamedNodeMap attributes { __get; }
ReadOnly Property attributes() As NamedNodeMap
baseURI (declared in Node)
property baseURI: String read;
String baseURI { get; }
var baseURI: String { get{} }
String baseURI { __get; }
ReadOnly Property baseURI() As String
childNodes (declared in Node)
property childNodes: Node read;
Node childNodes { get; }
var childNodes: Node { get{} }
Node childNodes { __get; }
ReadOnly Property childNodes() As Node
classList
property classList: DOMTokenList read;
DOMTokenList classList { get; }
var classList: DOMTokenList { get{} }
DOMTokenList classList { __get; }
ReadOnly Property classList() As DOMTokenList
className
property className: String read write;
String className { get; set; }
var className: String { get{} set{} }
String className { __get; __set; }
Property className() As String
clientHeight
property clientHeight: Int32 read;
Int32 clientHeight { get; }
var clientHeight: Int32 { get{} }
Int32 clientHeight { __get; }
ReadOnly Property clientHeight() As Int32
clientLeft
property clientLeft: HTMLElement read;
HTMLElement clientLeft { get; }
var clientLeft: HTMLElement { get{} }
HTMLElement clientLeft { __get; }
ReadOnly Property clientLeft() As HTMLElement
clientTop
property clientTop: HTMLElement read;
HTMLElement clientTop { get; }
var clientTop: HTMLElement { get{} }
HTMLElement clientTop { __get; }
ReadOnly Property clientTop() As HTMLElement
clientWidth
property clientWidth: Int32 read;
Int32 clientWidth { get; }
var clientWidth: Int32 { get{} }
Int32 clientWidth { __get; }
ReadOnly Property clientWidth() As Int32
computedName
property computedName: String read;
String computedName { get; }
var computedName: String { get{} }
String computedName { __get; }
ReadOnly Property computedName() As String
computedRole
property computedRole: String read;
String computedRole { get; }
var computedRole: String { get{} }
String computedRole { __get; }
ReadOnly Property computedRole() As String
firstChild (declared in Node)
property firstChild: Node read;
Node firstChild { get; }
var firstChild: Node { get{} }
Node firstChild { __get; }
ReadOnly Property firstChild() As Node
id
property id: String read write;
String id { get; set; }
var id: String { get{} set{} }
String id { __get; __set; }
Property id() As String
innerHTML
property innerHTML: String read write;
String innerHTML { get; set; }
var innerHTML: String { get{} set{} }
String innerHTML { __get; __set; }
Property innerHTML() As String
isConnected (declared in Node)
property isConnected: Boolean read;
Boolean isConnected { get; }
var isConnected: Boolean { get{} }
Boolean isConnected { __get; }
ReadOnly Property isConnected() As Boolean
lastChild (declared in Node)
property lastChild: Node read;
Node lastChild { get; }
var lastChild: Node { get{} }
Node lastChild { __get; }
ReadOnly Property lastChild() As Node
localName
property localName: String read;
String localName { get; }
var localName: String { get{} }
String localName { __get; }
ReadOnly Property localName() As String
namespaceURI
property namespaceURI: String read;
String namespaceURI { get; }
var namespaceURI: String { get{} }
String namespaceURI { __get; }
ReadOnly Property namespaceURI() As String
nextSibling (declared in Node)
property nextSibling: Node read;
Node nextSibling { get; }
var nextSibling: Node { get{} }
Node nextSibling { __get; }
ReadOnly Property nextSibling() As Node
nodeName (declared in Node)
property nodeName: Node read;
Node nodeName { get; }
var nodeName: Node { get{} }
Node nodeName { __get; }
ReadOnly Property nodeName() As Node
nodeValue (declared in Node)
property nodeValue: Node read write;
Node nodeValue { get; set; }
var nodeValue: Node { get{} set{} }
Node nodeValue { __get; __set; }
Property nodeValue() As Node
onfullscreenchange
property onfullscreenchange: dynamic read write;
dynamic onfullscreenchange { get; set; }
var onfullscreenchange: dynamic { get{} set{} }
dynamic onfullscreenchange { __get; __set; }
Property onfullscreenchange() As dynamic
onfullscreenerror
property onfullscreenerror: dynamic read write;
dynamic onfullscreenerror { get; set; }
var onfullscreenerror: dynamic { get{} set{} }
dynamic onfullscreenerror { __get; __set; }
Property onfullscreenerror() As dynamic
outerHTML
property outerHTML: String read write;
String outerHTML { get; set; }
var outerHTML: String { get{} set{} }
String outerHTML { __get; __set; }
Property outerHTML() As String
ownerDocument (declared in Node)
property ownerDocument: Document read;
Document ownerDocument { get; }
var ownerDocument: Document { get{} }
Document ownerDocument { __get; }
ReadOnly Property ownerDocument() As Document
parentElement (declared in Node)
property parentElement: Element read;
Element parentElement { get; }
var parentElement: Element { get{} }
Element parentElement { __get; }
ReadOnly Property parentElement() As Element
parentNode (declared in Node)
property parentNode: Node read;
Node parentNode { get; }
var parentNode: Node { get{} }
Node parentNode { __get; }
ReadOnly Property parentNode() As Node
part
property part: DOMTokenList read write;
DOMTokenList part { get; set; }
var part: DOMTokenList { get{} set{} }
DOMTokenList part { __get; __set; }
Property part() As DOMTokenList
prefix
property prefix: String read;
String prefix { get; }
var prefix: String { get{} }
String prefix { __get; }
ReadOnly Property prefix() As String
previousSibling (declared in Node)
property previousSibling: Node read;
Node previousSibling { get; }
var previousSibling: Node { get{} }
Node previousSibling { __get; }
ReadOnly Property previousSibling() As Node
scrollHeight
property scrollHeight: Int32 read;
Int32 scrollHeight { get; }
var scrollHeight: Int32 { get{} }
Int32 scrollHeight { __get; }
ReadOnly Property scrollHeight() As Int32
scrollLeft
property scrollLeft: HTMLElement read write;
HTMLElement scrollLeft { get; set; }
var scrollLeft: HTMLElement { get{} set{} }
HTMLElement scrollLeft { __get; __set; }
Property scrollLeft() As HTMLElement
scrollTop
property scrollTop: Int32 read write;
Int32 scrollTop { get; set; }
var scrollTop: Int32 { get{} set{} }
Int32 scrollTop { __get; __set; }
Property scrollTop() As Int32
scrollWidth
property scrollWidth: Int32 read;
Int32 scrollWidth { get; }
var scrollWidth: Int32 { get{} }
Int32 scrollWidth { __get; }
ReadOnly Property scrollWidth() As Int32
shadowRoot
property shadowRoot: HTMLElement read;
HTMLElement shadowRoot { get; }
var shadowRoot: HTMLElement { get{} }
HTMLElement shadowRoot { __get; }
ReadOnly Property shadowRoot() As HTMLElement
tagName
property tagName: String read;
String tagName { get; }
var tagName: String { get{} }
String tagName { __get; }
ReadOnly Property tagName() As String
textContent (declared in Node)
addEventListener (dynamic, dynamic) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(partype: dynamic; parlistener: dynamic)
void addEventListener(dynamic partype, dynamic parlistener)
func addEventListener(_ partype: dynamic, _ parlistener: dynamic)
void addEventListener(dynamic partype, dynamic parlistener)
Sub addEventListener(partype As dynamic, parlistener As dynamic)
Parameters:
- partype:
- parlistener:
addEventListener (dynamic, dynamic, dynamic, dynamic, dynamic, dynamic)
Registers an event handler to a specific event type on the element.
method addEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; parcapture: dynamic; paronce: dynamic; parpassive: dynamic)
void addEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic parcapture, dynamic paronce, dynamic parpassive)
func addEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ parcapture: dynamic, _ paronce: dynamic, _ parpassive: dynamic)
void addEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic parcapture, dynamic paronce, dynamic parpassive)
Sub addEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, parcapture As dynamic, paronce As dynamic, parpassive As dynamic)
Parameters:
- partype:
- parlistener:
- paroptions:
- parcapture:
- paronce:
- parpassive:
addEventListener (dynamic, dynamic, dynamic) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(type: dynamic; listener: dynamic; options: dynamic)
void addEventListener(dynamic type, dynamic listener, dynamic options)
func addEventListener(_ type: dynamic, _ listener: dynamic, _ options: dynamic)
void addEventListener(dynamic type, dynamic listener, dynamic options)
Sub addEventListener(type As dynamic, listener As dynamic, options As dynamic)
Parameters:
- type:
- listener:
- options:
addEventListener (dynamic, dynamic, Boolean) (declared in EventTarget)
Registers an event handler of a specific event type on the EventTarget.
method addEventListener(type: dynamic; listener: dynamic; useCapture: Boolean)
void addEventListener(dynamic type, dynamic listener, Boolean useCapture)
func addEventListener(_ type: dynamic, _ listener: dynamic, _ useCapture: Boolean)
void addEventListener(dynamic type, dynamic listener, Boolean useCapture)
Sub addEventListener(type As dynamic, listener As dynamic, useCapture As Boolean)
Parameters:
- type:
- listener:
- useCapture:
appendChild (declared in Node)
Adds the specified childNode argument as the last child to the current node. If the argument referenced an existing node on the DOM tree, the node will be detached from its current position and attached at the new position.
method appendChild(paraChild: dynamic): Node
Node appendChild(dynamic paraChild)
func appendChild(_ paraChild: dynamic) -> Node
Node appendChild(dynamic paraChild)
Function appendChild(paraChild As dynamic) As Node
Parameters:
- paraChild:
attachShadow
Attaches a shadow DOM tree to the specified element and returns a reference to its ShadowRoot.
method attachShadow(parshadowRootInit: dynamic; parmode: dynamic; pardelegatesFocus: dynamic): ShadowRoot
ShadowRoot attachShadow(dynamic parshadowRootInit, dynamic parmode, dynamic pardelegatesFocus)
func attachShadow(_ parshadowRootInit: dynamic, _ parmode: dynamic, _ pardelegatesFocus: dynamic) -> ShadowRoot
ShadowRoot attachShadow(dynamic parshadowRootInit, dynamic parmode, dynamic pardelegatesFocus)
Function attachShadow(parshadowRootInit As dynamic, parmode As dynamic, pardelegatesFocus As dynamic) As ShadowRoot
Parameters:
- parshadowRootInit:
- parmode:
- pardelegatesFocus:
cloneNode (declared in Node)
Clone a Node, and optionally, all of its contents. By default, it clones the content of the node.
method cloneNode par(pardeep: dynamic): Node
Node cloneNode par(dynamic pardeep)
func cloneNode(par pardeep: dynamic) -> Node
Node cloneNode par(dynamic pardeep)
Function cloneNode par(pardeep As dynamic) As Node
Parameters:
- pardeep:
compareDocumentPosition (declared in Node)
Compares the position of the current node against another node in any other document.
method compareDocumentPosition(parotherNode: dynamic): Int32
Int32 compareDocumentPosition(dynamic parotherNode)
func compareDocumentPosition(_ parotherNode: dynamic) -> Int32
Int32 compareDocumentPosition(dynamic parotherNode)
Function compareDocumentPosition(parotherNode As dynamic) As Int32
Parameters:
- parotherNode:
contains (declared in Node)
Returns a Boolean value indicating whether or not a node is a descendant of the calling node.
method contains(parotherNode: dynamic): Boolean
Boolean contains(dynamic parotherNode)
func contains(_ parotherNode: dynamic) -> Boolean
Boolean contains(dynamic parotherNode)
Function contains(parotherNode As dynamic) As Boolean
Parameters:
- parotherNode:
dispatchEvent
Dispatches an event to this node in the DOM and returns a Boolean that indicates whether no handler canceled the event.
method dispatchEvent(parevent: dynamic): dynamic
dynamic dispatchEvent(dynamic parevent)
func dispatchEvent(_ parevent: dynamic) -> dynamic
dynamic dispatchEvent(dynamic parevent)
Function dispatchEvent(parevent As dynamic) As dynamic
Parameters:
- parevent:
getAttribute
Retrieves the value of the attribute with the specified name, from the current node and returns it as an Object.
method getAttribute(parname: dynamic): String
String getAttribute(dynamic parname)
func getAttribute(_ parname: dynamic) -> String
String getAttribute(dynamic parname)
Function getAttribute(parname As dynamic) As String
Parameters:
- parname:
getAttributeNS
Retrieves the value of the attribute with the specified name and namespace, from the current node and returns it as an Object.
method getAttributeNS(parnamespace: dynamic; parname: dynamic): String
String getAttributeNS(dynamic parnamespace, dynamic parname)
func getAttributeNS(_ parnamespace: dynamic, _ parname: dynamic) -> String
String getAttributeNS(dynamic parnamespace, dynamic parname)
Function getAttributeNS(parnamespace As dynamic, parname As dynamic) As String
Parameters:
- parnamespace:
- parname:
getBoundingClientRect
Returns the size of an element and its position relative to the viewport.
method getBoundingClientRect: DOMRect
DOMRect getBoundingClientRect()
func getBoundingClientRect() -> DOMRect
DOMRect getBoundingClientRect()
Function getBoundingClientRect() As DOMRect
getClientRects
Returns a collection of rectangles that indicate the bounding rectangles for each line of text in a client.
method getClientRects: DOMRect
DOMRect getClientRects()
func getClientRects() -> DOMRect
DOMRect getClientRects()
Function getClientRects() As DOMRect
getElementsByClassName
Returns a live HTMLCollection that contains all descendants of the current element that possess the list of classes given in the parameter.
method getElementsByClassName(parnames: dynamic): HTMLCollection
HTMLCollection getElementsByClassName(dynamic parnames)
func getElementsByClassName(_ parnames: dynamic) -> HTMLCollection
HTMLCollection getElementsByClassName(dynamic parnames)
Function getElementsByClassName(parnames As dynamic) As HTMLCollection
Parameters:
- parnames:
getElementsByTagName
Returns a live HTMLCollection containing all descendant elements, of a particular tag name, from the current element.
method getElementsByTagName(partagName: dynamic): HTMLCollection
HTMLCollection getElementsByTagName(dynamic partagName)
func getElementsByTagName(_ partagName: dynamic) -> HTMLCollection
HTMLCollection getElementsByTagName(dynamic partagName)
Function getElementsByTagName(partagName As dynamic) As HTMLCollection
Parameters:
- partagName:
getElementsByTagNameNS
Returns a live HTMLCollection containing all descendant elements, of a particular tag name and namespace, from the current element.
method getElementsByTagNameNS(parnamespaceURI: dynamic; parlocalName: dynamic): HTMLCollection
HTMLCollection getElementsByTagNameNS(dynamic parnamespaceURI, dynamic parlocalName)
func getElementsByTagNameNS(_ parnamespaceURI: dynamic, _ parlocalName: dynamic) -> HTMLCollection
HTMLCollection getElementsByTagNameNS(dynamic parnamespaceURI, dynamic parlocalName)
Function getElementsByTagNameNS(parnamespaceURI As dynamic, parlocalName As dynamic) As HTMLCollection
Parameters:
- parnamespaceURI:
- parlocalName:
getRootNode (declared in Node)
Returns the context object's root which optionally includes the shadow root if it is available.
method getRootNode(paroptions: dynamic): Node
Node getRootNode(dynamic paroptions)
func getRootNode(_ paroptions: dynamic) -> Node
Node getRootNode(dynamic paroptions)
Function getRootNode(paroptions As dynamic) As Node
Parameters:
- paroptions:
hasAttribute
Returns a Boolean indicating if the element has the specified attribute or not.
method hasAttribute(parname: dynamic): HTMLElement
HTMLElement hasAttribute(dynamic parname)
func hasAttribute(_ parname: dynamic) -> HTMLElement
HTMLElement hasAttribute(dynamic parname)
Function hasAttribute(parname As dynamic) As HTMLElement
Parameters:
- parname:
hasAttributeNS
Returns a Boolean indicating if the element has the specified attribute, in the specified namespace, or not.
method hasAttributeNS(parnamespace: dynamic; localName: dynamic): HTMLElement
HTMLElement hasAttributeNS(dynamic parnamespace, dynamic localName)
func hasAttributeNS(_ parnamespace: dynamic, _ localName: dynamic) -> HTMLElement
HTMLElement hasAttributeNS(dynamic parnamespace, dynamic localName)
Function hasAttributeNS(parnamespace As dynamic, localName As dynamic) As HTMLElement
Parameters:
- parnamespace:
- localName:
hasAttributes
Returns a Boolean indicating if the element has one or more HTML attributes present.
method hasAttributes: HTMLElement
HTMLElement hasAttributes()
func hasAttributes() -> HTMLElement
HTMLElement hasAttributes()
Function hasAttributes() As HTMLElement
hasChildNodes (declared in Node)
Returns a Boolean indicating whether or not the element has any child nodes.
method hasChildNodes: Node
Node hasChildNodes()
func hasChildNodes() -> Node
Node hasChildNodes()
Function hasChildNodes() As Node
hasPointerCapture
Indicates whether the element on which it is invoked has pointer capture for the pointer identified by the given pointer ID.
method hasPointerCapture(parpointerId: dynamic): HTMLElement
HTMLElement hasPointerCapture(dynamic parpointerId)
func hasPointerCapture(_ parpointerId: dynamic) -> HTMLElement
HTMLElement hasPointerCapture(dynamic parpointerId)
Function hasPointerCapture(parpointerId As dynamic) As HTMLElement
Parameters:
- parpointerId:
insertAdjacentElement
Inserts a given element node at a given position relative to the element it is invoked upon.
method insertAdjacentElement(parposition: dynamic; parelement: dynamic): HTMLElement
HTMLElement insertAdjacentElement(dynamic parposition, dynamic parelement)
func insertAdjacentElement(_ parposition: dynamic, _ parelement: dynamic) -> HTMLElement
HTMLElement insertAdjacentElement(dynamic parposition, dynamic parelement)
Function insertAdjacentElement(parposition As dynamic, parelement As dynamic) As HTMLElement
Parameters:
- parposition:
- parelement:
insertAdjacentHTML
Parses the text as HTML or XML and inserts the resulting nodes into the tree in the position given.
method insertAdjacentHTML(parposition: dynamic; partext: dynamic): String
String insertAdjacentHTML(dynamic parposition, dynamic partext)
func insertAdjacentHTML(_ parposition: dynamic, _ partext: dynamic) -> String
String insertAdjacentHTML(dynamic parposition, dynamic partext)
Function insertAdjacentHTML(parposition As dynamic, partext As dynamic) As String
Parameters:
- parposition:
- partext:
insertAdjacentText
Inserts a given text node at a given position relative to the element it is invoked upon.
method insertAdjacentText(parposition: dynamic; parelement: dynamic): HTMLElement
HTMLElement insertAdjacentText(dynamic parposition, dynamic parelement)
func insertAdjacentText(_ parposition: dynamic, _ parelement: dynamic) -> HTMLElement
HTMLElement insertAdjacentText(dynamic parposition, dynamic parelement)
Function insertAdjacentText(parposition As dynamic, parelement As dynamic) As HTMLElement
Parameters:
- parposition:
- parelement:
insertBefore (declared in Node)
Inserts a Node before the reference node as a child of a specified parent node.
method insertBefore(parnewNode: dynamic; parreferenceNode: dynamic): Node
Node insertBefore(dynamic parnewNode, dynamic parreferenceNode)
func insertBefore(_ parnewNode: dynamic, _ parreferenceNode: dynamic) -> Node
Node insertBefore(dynamic parnewNode, dynamic parreferenceNode)
Function insertBefore(parnewNode As dynamic, parreferenceNode As dynamic) As Node
Parameters:
- parnewNode:
- parreferenceNode:
isDefaultNamespace (declared in Node)
Accepts a namespace URI as an argument and returns a Boolean with a value of true if the namespace is the default namespace on the given node or false if not.
method isDefaultNamespace: Boolean
Boolean isDefaultNamespace()
func isDefaultNamespace() -> Boolean
Boolean isDefaultNamespace()
Function isDefaultNamespace() As Boolean
isEqualNode (declared in Node)
Returns a Boolean which indicates whether or not two nodes are of the same type and all their defining data points match.
Parameters:
- parotherNode:
isSameNode (declared in Node)
Returns a Boolean value indicating whether or not the two nodes are the same (that is, they reference the same object).
method isSameNode: Node
Node isSameNode()
func isSameNode() -> Node
Node isSameNode()
Function isSameNode() As Node
lookupNamespaceURI (declared in Node)
Accepts a prefix and returns the namespace URI associated with it on the given node if found (and null if not). Supplying null for the prefix will return the default namespace.
method lookupNamespaceURI(parprefix: dynamic)
void lookupNamespaceURI(dynamic parprefix)
func lookupNamespaceURI(_ parprefix: dynamic)
void lookupNamespaceURI(dynamic parprefix)
Sub lookupNamespaceURI(parprefix As dynamic)
Parameters:
- parprefix:
normalize (declared in Node)
Clean up all the text nodes under this element (merge adjacent, remove empty).
method normalize: String
String normalize()
func normalize() -> String
String normalize()
Function normalize() As String
querySelector
Returns the first Node which matches the specified selector string relative to the element.
method querySelector(parselectors: dynamic): Element
Element querySelector(dynamic parselectors)
func querySelector(_ parselectors: dynamic) -> Element
Element querySelector(dynamic parselectors)
Function querySelector(parselectors As dynamic) As Element
Parameters:
- parselectors:
querySelectorAll
Returns a NodeList of nodes which match the specified selector string relative to the element.
method querySelectorAll(parselectors: dynamic): HTMLElement
HTMLElement querySelectorAll(dynamic parselectors)
func querySelectorAll(_ parselectors: dynamic) -> HTMLElement
HTMLElement querySelectorAll(dynamic parselectors)
Function querySelectorAll(parselectors As dynamic) As HTMLElement
Parameters:
- parselectors:
releasePointerCapture
Releases (stops) pointer capture that was previously set for a specific pointer event.
method releasePointerCapture(parpointerId: dynamic)
void releasePointerCapture(dynamic parpointerId)
func releasePointerCapture(_ parpointerId: dynamic)
void releasePointerCapture(dynamic parpointerId)
Sub releasePointerCapture(parpointerId As dynamic)
Parameters:
- parpointerId:
removeAttribute
Removes the named attribute from the current node.
method removeAttribute(parattrName: dynamic)
void removeAttribute(dynamic parattrName)
func removeAttribute(_ parattrName: dynamic)
void removeAttribute(dynamic parattrName)
Sub removeAttribute(parattrName As dynamic)
Parameters:
- parattrName:
removeEventListener
Removes an event listener from the element.
method removeEventListener(partype: dynamic; parlistener: dynamic; paroptions: dynamic; paruseCapture: dynamic): dynamic
dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)
func removeEventListener(_ partype: dynamic, _ parlistener: dynamic, _ paroptions: dynamic, _ paruseCapture: dynamic) -> dynamic
dynamic removeEventListener(dynamic partype, dynamic parlistener, dynamic paroptions, dynamic paruseCapture)
Function removeEventListener(partype As dynamic, parlistener As dynamic, paroptions As dynamic, paruseCapture As dynamic) As dynamic
Parameters:
- partype:
- parlistener:
- paroptions:
- paruseCapture:
replaceChild (declared in Node)
Replaces one child Node of the current one with the second one given in parameter.
method replaceChild(parnewChild: dynamic; paroldChild: dynamic): Node
Node replaceChild(dynamic parnewChild, dynamic paroldChild)
func replaceChild(_ parnewChild: dynamic, _ paroldChild: dynamic) -> Node
Node replaceChild(dynamic parnewChild, dynamic paroldChild)
Function replaceChild(parnewChild As dynamic, paroldChild As dynamic) As Node
Parameters:
- parnewChild:
- paroldChild:
setAttribute
Sets the value of a named attribute of the current node.
method setAttribute(parname: dynamic; parvalue: dynamic)
void setAttribute(dynamic parname, dynamic parvalue)
func setAttribute(_ parname: dynamic, _ parvalue: dynamic)
void setAttribute(dynamic parname, dynamic parvalue)
Sub setAttribute(parname As dynamic, parvalue As dynamic)
Parameters:
- parname:
- parvalue:
setPointerCapture
Designates a specific element as the capture target of future pointer events.
method setPointerCapture(parpointerId: dynamic)
void setPointerCapture(dynamic parpointerId)
func setPointerCapture(_ parpointerId: dynamic)
void setPointerCapture(dynamic parpointerId)
Sub setPointerCapture(parpointerId As dynamic)
Parameters:
- parpointerId:
toggleAttribute
Toggles a boolean attribute, removing it if it is present and adding it if it is not present, on the specified element.
method toggleAttribute(parname: dynamic; parforce: dynamic): Boolean
Boolean toggleAttribute(dynamic parname, dynamic parforce)
func toggleAttribute(_ parname: dynamic, _ parforce: dynamic) -> Boolean
Boolean toggleAttribute(dynamic parname, dynamic parforce)
Function toggleAttribute(parname As dynamic, parforce As dynamic) As Boolean
Parameters:
- parname:
- parforce: