Module

Web.DOM.HTMLCollection

#length

length :: HTMLCollection -> Effect Int

The number of elements in a HTMLCollection.

#item

item :: Int -> HTMLCollection -> Effect (Maybe Element)

The element in a HTMLCollection at the specified index, or Nothing if no such element exists.

#namedItem

namedItem :: String -> HTMLCollection -> Effect (Maybe Element)

The first element with the specified name or ID in a HTMLCollection, or Nothing if no such element exists.

#toArray

toArray :: HTMLCollection -> Effect (Array Element)

The elements of an HTMLCollection represented in an array.

Re-exports from Web.DOM.Internal.Types

#HTMLCollection

Modules