Web.DOM.Node
- Package
- purescript-web-dom
- Repository
- purescript-web/purescript-web-dom
#fromEventTarget Source
fromEventTarget :: EventTarget -> Maybe Node
#toEventTarget Source
toEventTarget :: Node -> EventTarget
#nodeTypeIndex Source
nodeTypeIndex :: Node -> Int
The numeric value for the type of a node.
#ownerDocument Source
ownerDocument :: Node -> Effect (Maybe Document)
The document the node belongs to, unless the node is a document in which case the value is Nothing.
#hasChildNodes Source
hasChildNodes :: Node -> Effect Boolean
Indicates whether the node has any child nodes.
#firstChild Source
firstChild :: Node -> Effect (Maybe Node)
The first child of the node, or Nothing if the node has no children.
#previousSibling Source
previousSibling :: Node -> Effect (Maybe Node)
The previous sibling node, or Nothing if there is no previous sibling.
#nextSibling Source
nextSibling :: Node -> Effect (Maybe Node)
The next sibling node, or Nothing if there is no next sibling.
#setNodeValue Source
setNodeValue :: String -> Node -> Effect Unit
If the node type is text, comment, or processing instruction this allows the node's data to be changed, or has no effect in all other cases.
#textContent Source
textContent :: Node -> Effect String
If the node type is document fragment, element, text, processing instruction, or comment this is the node's data, or null in all other cases.
#setTextContent Source
setTextContent :: String -> Node -> Effect Unit
If the node type is document fragment, element, text, processing instruction, or comment this allows the node's data to be changed, or has no effect in all other cases.
#isEqualNode Source
isEqualNode :: Node -> Node -> Effect Boolean
Checks whether two nodes are equivalent.
#compareDocumentPositionBits Source
compareDocumentPositionBits :: Node -> Node -> Effect Int
Compares the position of two nodes in the document.
#appendChild Source
appendChild :: Node -> Node -> Effect Node
Appends the first node to the child node list of the second node.
#removeChild Source
removeChild :: Node -> Node -> Effect Node
Removes the first node from the children of the second node.
Re-exports from Web.DOM.Internal.Types
- 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. Text