ParentNode

Overview

The ParentNode mixin contains methods and properties that are common to all types of Node objects that can have children.

Location

 

childElementCount

 

property childElementCount: Double read;

 

Double childElementCount { get; }

 

var childElementCount: Double { get{} }

 

Double childElementCount { __get; }

 

ReadOnly Property childElementCount() As Double

children

 

property children: HTMLCollection read;

 

HTMLCollection children { get; }

 

var children: HTMLCollection { get{} }

 

HTMLCollection children { __get; }

 

ReadOnly Property children() As HTMLCollection

firstElementChild

 

property firstElementChild: Node read;

 

Node firstElementChild { get; }

 

var firstElementChild: Node { get{} }

 

Node firstElementChild { __get; }

 

ReadOnly Property firstElementChild() As Node

lastElementChild

 

property lastElementChild: Node read;

 

Node lastElementChild { get; }

 

var lastElementChild: Node { get{} }

 

Node lastElementChild { __get; }

 

ReadOnly Property lastElementChild() As Node

querySelector

Returns the first Element with the current element as root that matches the specified group of selectors.

 

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 representing a list of elements with the current element as root that matches the specified group of selectors.

 

method querySelectorAll(parselectors: dynamic): Node

 

Node querySelectorAll(dynamic parselectors)

 

func querySelectorAll(_ parselectors: dynamic) -> Node

 

Node querySelectorAll(dynamic parselectors)

 

Function querySelectorAll(parselectors As dynamic) As Node

Parameters:

  • parselectors:

replaceChildren

Replaces the existing children of a node with a specified new set of children.

 

method replaceChildren: dynamic

 

dynamic replaceChildren()

 

func replaceChildren() -> dynamic

 

dynamic replaceChildren()

 

Function replaceChildren() As dynamic

 

childElementCount

 

property childElementCount: Double read;

 

Double childElementCount { get; }

 

var childElementCount: Double { get{} }

 

Double childElementCount { __get; }

 

ReadOnly Property childElementCount() As Double

children

 

property children: HTMLCollection read;

 

HTMLCollection children { get; }

 

var children: HTMLCollection { get{} }

 

HTMLCollection children { __get; }

 

ReadOnly Property children() As HTMLCollection

firstElementChild

 

property firstElementChild: Node read;

 

Node firstElementChild { get; }

 

var firstElementChild: Node { get{} }

 

Node firstElementChild { __get; }

 

ReadOnly Property firstElementChild() As Node

lastElementChild

 

property lastElementChild: Node read;

 

Node lastElementChild { get; }

 

var lastElementChild: Node { get{} }

 

Node lastElementChild { __get; }

 

ReadOnly Property lastElementChild() As Node

 

querySelector

Returns the first Element with the current element as root that matches the specified group of selectors.

 

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 representing a list of elements with the current element as root that matches the specified group of selectors.

 

method querySelectorAll(parselectors: dynamic): Node

 

Node querySelectorAll(dynamic parselectors)

 

func querySelectorAll(_ parselectors: dynamic) -> Node

 

Node querySelectorAll(dynamic parselectors)

 

Function querySelectorAll(parselectors As dynamic) As Node

Parameters:

  • parselectors:

replaceChildren

Replaces the existing children of a node with a specified new set of children.

 

method replaceChildren: dynamic

 

dynamic replaceChildren()

 

func replaceChildren() -> dynamic

 

dynamic replaceChildren()

 

Function replaceChildren() As dynamic