NodeList

Overview

NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().

Location

 

entries

Returns an iterator, allowing code to go through all key/value pairs contained in the collection. (In this case, the keys are numbers starting from 0 and the values are nodes.)

 

method entries: dynamic

 

dynamic entries()

 

func entries() -> dynamic

 

dynamic entries()

 

Function entries() As dynamic

forEach

Executes a provided function once per NodeList element, passing the element as an argument to the function.

 

method forEach(parcallback: dynamic; parcurrentValue: dynamic; parcurrentIndex: dynamic; parlistObj: dynamic): HTMLElement

 

HTMLElement forEach(dynamic parcallback, dynamic parcurrentValue, dynamic parcurrentIndex, dynamic parlistObj)

 

func forEach(_ parcallback: dynamic, _ parcurrentValue: dynamic, _ parcurrentIndex: dynamic, _ parlistObj: dynamic) -> HTMLElement

 

HTMLElement forEach(dynamic parcallback, dynamic parcurrentValue, dynamic parcurrentIndex, dynamic parlistObj)

 

Function forEach(parcallback As dynamic, parcurrentValue As dynamic, parcurrentIndex As dynamic, parlistObj As dynamic) As HTMLElement

Parameters:

  • parcallback:
  • parcurrentValue:
  • parcurrentIndex:
  • parlistObj:

item

 

property item[parindex: Int32]: Node read write;

 

Node item[Int32 parindex] { get; set; }

 

subscript item(_ parindex: Int32) -> Node { get{} set{} }

 

Node item[Int32 parindex] { __get; __set; }

 

Property item(parindex As Int32) As Node

keys

Returns an iterator, allowing code to go through all the keys of the key/value pairs contained in the collection. (In this case, the keys are numbers starting from 0.)

 

method keys: dynamic

 

dynamic keys()

 

func keys() -> dynamic

 

dynamic keys()

 

Function keys() As dynamic

length

 

property length: Int32 read write;

 

Int32 length { get; set; }

 

var length: Int32 { get{} set{} }

 

Int32 length { __get; __set; }

 

Property length() As Int32

values

Returns an iterator allowing code to go through all values (nodes) of the key/value pairs contained in the collection.

 

method values: dynamic

 

dynamic values()

 

func values() -> dynamic

 

dynamic values()

 

Function values() As dynamic

 

item

 

property item[parindex: Int32]: Node read write;

 

Node item[Int32 parindex] { get; set; }

 

subscript item(_ parindex: Int32) -> Node { get{} set{} }

 

Node item[Int32 parindex] { __get; __set; }

 

Property item(parindex As Int32) As Node

length

 

property length: Int32 read write;

 

Int32 length { get; set; }

 

var length: Int32 { get{} set{} }

 

Int32 length { __get; __set; }

 

Property length() As Int32

 

entries

Returns an iterator, allowing code to go through all key/value pairs contained in the collection. (In this case, the keys are numbers starting from 0 and the values are nodes.)

 

method entries: dynamic

 

dynamic entries()

 

func entries() -> dynamic

 

dynamic entries()

 

Function entries() As dynamic

forEach

Executes a provided function once per NodeList element, passing the element as an argument to the function.

 

method forEach(parcallback: dynamic; parcurrentValue: dynamic; parcurrentIndex: dynamic; parlistObj: dynamic): HTMLElement

 

HTMLElement forEach(dynamic parcallback, dynamic parcurrentValue, dynamic parcurrentIndex, dynamic parlistObj)

 

func forEach(_ parcallback: dynamic, _ parcurrentValue: dynamic, _ parcurrentIndex: dynamic, _ parlistObj: dynamic) -> HTMLElement

 

HTMLElement forEach(dynamic parcallback, dynamic parcurrentValue, dynamic parcurrentIndex, dynamic parlistObj)

 

Function forEach(parcallback As dynamic, parcurrentValue As dynamic, parcurrentIndex As dynamic, parlistObj As dynamic) As HTMLElement

Parameters:

  • parcallback:
  • parcurrentValue:
  • parcurrentIndex:
  • parlistObj:

keys

Returns an iterator, allowing code to go through all the keys of the key/value pairs contained in the collection. (In this case, the keys are numbers starting from 0.)

 

method keys: dynamic

 

dynamic keys()

 

func keys() -> dynamic

 

dynamic keys()

 

Function keys() As dynamic

values

Returns an iterator allowing code to go through all values (nodes) of the key/value pairs contained in the collection.

 

method values: dynamic

 

dynamic values()

 

func values() -> dynamic

 

dynamic values()

 

Function values() As dynamic