Module
Web.DOM.ParentNode
- Package
- purescript-web-dom
- Repository
- purescript-web/purescript-web-dom
#ParentNode Source
data ParentNode :: Type
#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 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).
- Modules
- Web.
DOM - Web.
DOM. CharacterData - Web.
DOM. ChildNode - Web.
DOM. Comment - Web.
DOM. DOMTokenList - Web.
DOM. Document - Web.
DOM. DocumentFragment - Web.
DOM. DocumentType - Web.
DOM. Element - Web.
DOM. HTMLCollection - Web.
DOM. Internal. Types - Web.
DOM. MutationObserver - Web.
DOM. MutationRecord - Web.
DOM. Node - Web.
DOM. NodeList - Web.
DOM. NodeType - Web.
DOM. NonDocumentTypeChildNode - Web.
DOM. NonElementParentNode - Web.
DOM. ParentNode - Web.
DOM. ProcessingInstruction - Web.
DOM. ShadowRoot - Web.
DOM. Text