Module

Web.DOM.ParentNode

Package
purescript-web-dom
Repository
purescript-web/purescript-web-dom

#ParentNode Source

#children Source

children :: ParentNode -> Effect HTMLCollection

The child elements for the node.

#firstElementChild Source

firstElementChild :: ParentNode -> Effect (Maybe Element)

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

#lastElementChild Source

lastElementChild :: ParentNode -> Effect (Maybe Element)

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

#childElementCount Source

childElementCount :: ParentNode -> Effect Int

The number of child elements.

#querySelector Source

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 Source

querySelectorAll :: QuerySelector -> ParentNode -> Effect NodeList

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