Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>NodeList

Advanced Web Composition for Future
Latest
interface NodeList
import { type NodeList } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

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

Index Signatures

[index: number]: Node

Properties

readonly
length: number

Returns the number of nodes in the collection.

Methods

item(index: number): Node | null

Returns the node with index index from the collection. The nodes are sorted in tree order.

forEach(callbackfn: (
value: Node,
key: number,
parent: NodeList,
) => void
, thisArg?: any
): void

Performs the specified action for each node in an list.