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


 

addEventListener

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:

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

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

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:

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

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:

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

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

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

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:

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

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

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

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

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

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

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

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

 

addEventListener

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:

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:

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:

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

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:

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:

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: