Module

Web.DOM.ParentNode

#ParentNode

#children

children :: ParentNode -> Effect HTMLCollection

The child elements for the node.

#firstElementChild

firstElementChild :: ParentNode -> Effect (Maybe Element)

The first child that is an element, or Nothing if no such element exists.

#lastElementChild

lastElementChild :: ParentNode -> Effect (Maybe Element)

The last child that is an element, or Nothing if no such element exists.

#childElementCount

childElementCount :: ParentNode -> Effect Int

The number of child elements.

#querySelector

querySelector :: QuerySelector -> ParentNode -> Effect (Maybe Element)

Finds the first child that is an element that matches the selector(s), or Nothing if no such element exists.

#querySelectorAll

querySelectorAll :: QuerySelector -> ParentNode -> Effect NodeList

Finds all the child elements that matches the selector(s).

Modules