Home Reference Source Repository
import HTMLCollection from 'html-document/src/utils/HTMLCollection.js'
public class | source

HTMLCollection

Extends:

Array → HTMLCollection

Class provides interface for HTLMCollection. Used in getElementsByTagName etc.

See:

Constructor Summary

Public Constructor
public

constructor(parent: *, selector: *)

Method Summary

Public Methods
public

Returns the specific node at the given zero-based index into the list.

Public Constructors

public constructor(parent: *, selector: *) source

Params:

NameTypeAttributeDescription
parent *
selector *

Public Methods

public item(index: number): HTMLElement | null source

Returns the specific node at the given zero-based index into the list. Returns null if the index is out of range.

Params:

NameTypeAttributeDescription
index number

Return:

HTMLElement | null