DocumentType

Overview

The DocumentType interface represents a Node containing a doctype.

Location

 

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)    (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:

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

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:

firstChild    (declared in Node)

 

property firstChild: Node read;

 

Node firstChild { get; }

 

var firstChild: Node { get{} }

 

Node firstChild { __get; }

 

ReadOnly Property firstChild() As Node

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:

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

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.

 

method isEqualNode(parotherNode: Node): Node

 

Node isEqualNode(Node parotherNode)

 

func isEqualNode(_ parotherNode: Node) -> Node

 

Node isEqualNode(Node parotherNode)

 

Function isEqualNode(parotherNode As Node) As Node

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

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:

name

 

property name: String read;

 

String name { get; }

 

var name: String { get{} }

 

String name { __get; }

 

ReadOnly Property name() 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

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

previousSibling    (declared in Node)

 

property previousSibling: Node read;

 

Node previousSibling { get; }

 

var previousSibling: Node { get{} }

 

Node previousSibling { __get; }

 

ReadOnly Property previousSibling() As Node

publicId

 

property publicId: Int32 read;

 

Int32 publicId { get; }

 

var publicId: Int32 { get{} }

 

Int32 publicId { __get; }

 

ReadOnly Property publicId() As Int32

removeEventListener    (declared in EventTarget)

Removes an event listener from the EventTarget.

 

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:

systemId

 

property systemId: Int32 read;

 

Int32 systemId { get; }

 

var systemId: Int32 { get{} }

 

Int32 systemId { __get; }

 

ReadOnly Property systemId() As Int32

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

 

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

firstChild    (declared in Node)

 

property firstChild: Node read;

 

Node firstChild { get; }

 

var firstChild: Node { get{} }

 

Node firstChild { __get; }

 

ReadOnly Property firstChild() As Node

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

name

 

property name: String read;

 

String name { get; }

 

var name: String { get{} }

 

String name { __get; }

 

ReadOnly Property name() 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

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

previousSibling    (declared in Node)

 

property previousSibling: Node read;

 

Node previousSibling { get; }

 

var previousSibling: Node { get{} }

 

Node previousSibling { __get; }

 

ReadOnly Property previousSibling() As Node

publicId

 

property publicId: Int32 read;

 

Int32 publicId { get; }

 

var publicId: Int32 { get{} }

 

Int32 publicId { __get; }

 

ReadOnly Property publicId() As Int32

systemId

 

property systemId: Int32 read;

 

Int32 systemId { get; }

 

var systemId: Int32 { get{} }

 

Int32 systemId { __get; }

 

ReadOnly Property systemId() As Int32

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

 

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)    (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:

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:

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:

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

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.

 

method isEqualNode(parotherNode: Node): Node

 

Node isEqualNode(Node parotherNode)

 

func isEqualNode(_ parotherNode: Node) -> Node

 

Node isEqualNode(Node parotherNode)

 

Function isEqualNode(parotherNode As Node) As Node

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

removeEventListener    (declared in EventTarget)

Removes an event listener from the EventTarget.

 

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: