Module

DOM.Node.Node

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

#nodeType Source

nodeType :: Partial => Node -> NodeType

The type of a node.

#nodeTypeIndex Source

nodeTypeIndex :: Node -> Int

The numeric value for the type of a node.

#nodeName Source

nodeName :: Node -> String

For elements this is the tag name, for document types this is the doctype name, for processing instructions this is the target, for all other nodes it is a string like "#text", `"#comment", etc. depending on the node type.

#baseURI Source

baseURI :: forall eff. Node -> Eff (dom :: DOM | eff) String

The node's base URL.

#ownerDocument Source

ownerDocument :: forall eff. Node -> Eff (dom :: DOM | eff) (Maybe Document)

The document the node belongs to, unless the node is a document in which case the value is Nothing.

#parentNode Source

parentNode :: forall eff. Node -> Eff (dom :: DOM | eff) (Maybe Node)

The parent node of the node.

#parentElement Source

parentElement :: forall eff. Node -> Eff (dom :: DOM | eff) (Maybe Element)

The parent element of the node.

#hasChildNodes Source

hasChildNodes :: forall eff. Node -> Eff (dom :: DOM | eff) Boolean

Indicates whether the node has any child nodes.

#childNodes Source

childNodes :: forall eff. Node -> Eff (dom :: DOM | eff) NodeList

The children of the node.

#firstChild Source

firstChild :: forall eff. Node -> Eff (dom :: DOM | eff) (Maybe Node)

The first child of the node, or Nothing if the node has no children.

#lastChild Source

lastChild :: forall eff. Node -> Eff (dom :: DOM | eff) (Maybe Node)

The last child of the node, or Nothing if the node has no children.

#previousSibling Source

previousSibling :: forall eff. Node -> Eff (dom :: DOM | eff) (Maybe Node)

The previous sibling node, or Nothing if there is no previous sibling.

#nextSibling Source

nextSibling :: forall eff. Node -> Eff (dom :: DOM | eff) (Maybe Node)

The next sibling node, or Nothing if there is no next sibling.

#nodeValue Source

nodeValue :: forall eff. Node -> Eff (dom :: DOM | eff) String

If the node type is text, comment, or processing instruction this is the node's data, or null in all other cases.

#setNodeValue Source

setNodeValue :: forall eff. String -> Node -> Eff (dom :: DOM | eff) 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 :: forall eff. Node -> Eff (dom :: DOM | eff) 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 :: forall eff. String -> Node -> Eff (dom :: DOM | eff) 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.

#normalize Source

normalize :: forall eff. Node -> Eff (dom :: DOM | eff) Unit

Removes empty text nodes and then combines any remaining text nodes that are contiguous.

#clone Source

clone :: forall eff. Node -> Eff (dom :: DOM | eff) Node

Clones the node without cloning the node's descendants.

#deepClone Source

deepClone :: forall eff. Node -> Eff (dom :: DOM | eff) Node

Clones the node and its descendants.

#isEqualNode Source

isEqualNode :: forall eff. Node -> Node -> Eff (dom :: DOM | eff) Boolean

Checks whether two nodes are equivalent.

#compareDocumentPositionBits Source

compareDocumentPositionBits :: forall eff. Node -> Node -> Eff (dom :: DOM | eff) Int

Compares the position of two nodes in the document.

#contains Source

contains :: forall eff. Node -> Node -> Eff (dom :: DOM | eff) Boolean

Checks whether the second node is contained within the first

#lookupPrefix Source

lookupPrefix :: forall eff. String -> Node -> Eff (dom :: DOM | eff) (Maybe String)

#lookupNamespaceURI Source

lookupNamespaceURI :: forall eff. String -> Node -> Eff (dom :: DOM | eff) (Maybe String)

#isDefaultNamespace Source

isDefaultNamespace :: forall eff. String -> Node -> Eff (dom :: DOM | eff) Boolean

#insertBefore Source

insertBefore :: forall eff. Node -> Node -> Node -> Eff (dom :: DOM | eff) Node

Inserts the first node before the second as a child of the third node.

#appendChild Source

appendChild :: forall eff. Node -> Node -> Eff (dom :: DOM | eff) Node

Appends the first node to the child node list of the second node.

#replaceChild Source

replaceChild :: forall eff. Node -> Node -> Node -> Eff (dom :: DOM | eff) Node

Uses the first node as a replacement for the second node in the children of the third node.

#removeChild Source

removeChild :: forall eff. Node -> Node -> Eff (dom :: DOM | eff) Node

Removes the first node from the children of the second node.

Modules
DOM
DOM.CSS.Event.Types
DOM.Event.ClipboardEvent
DOM.Event.CompositionEvent
DOM.Event.Event
DOM.Event.EventPhase
DOM.Event.EventTarget
DOM.Event.FocusEvent
DOM.Event.KeyboardEvent
DOM.Event.MouseEvent
DOM.Event.PopstateEvent
DOM.Event.TouchEvent
DOM.Event.Types
DOM.Event.WheelEvent
DOM.File.Blob
DOM.File.File
DOM.File.FileList
DOM.File.FileReader
DOM.File.FileReader.ReadyState
DOM.File.Types
DOM.HTML
DOM.HTML.Document
DOM.HTML.Document.ReadyState
DOM.HTML.Event.DataTransfer
DOM.HTML.Event.DragEvent
DOM.HTML.Event.DragEvent.DataTransfer
DOM.HTML.Event.ErrorEvent
DOM.HTML.Event.EventTypes
DOM.HTML.Event.HashChangeEvent
DOM.HTML.Event.Types
DOM.HTML.HTMLAnchorElement
DOM.HTML.HTMLAreaElement
DOM.HTML.HTMLBaseElement
DOM.HTML.HTMLButtonElement
DOM.HTML.HTMLCanvasElement
DOM.HTML.HTMLDataElement
DOM.HTML.HTMLDataListElement
DOM.HTML.HTMLElement
DOM.HTML.HTMLEmbedElement
DOM.HTML.HTMLFieldSetElement
DOM.HTML.HTMLFormElement
DOM.HTML.HTMLHyperlinkElementUtils
DOM.HTML.HTMLIFrameElement
DOM.HTML.HTMLImageElement
DOM.HTML.HTMLInputElement
DOM.HTML.HTMLKeygenElement
DOM.HTML.HTMLLIElement
DOM.HTML.HTMLLabelElement
DOM.HTML.HTMLLegendElement
DOM.HTML.HTMLLinkElement
DOM.HTML.HTMLMapElement
DOM.HTML.HTMLMediaElement
DOM.HTML.HTMLMediaElement.CanPlayType
DOM.HTML.HTMLMediaElement.NetworkState
DOM.HTML.HTMLMediaElement.ReadyState
DOM.HTML.HTMLMetaElement
DOM.HTML.HTMLMeterElement
DOM.HTML.HTMLModElement
DOM.HTML.HTMLOListElement
DOM.HTML.HTMLObjectElement
DOM.HTML.HTMLOptGroupElement
DOM.HTML.HTMLOptionElement
DOM.HTML.HTMLOutputElement
DOM.HTML.HTMLParamElement
DOM.HTML.HTMLProgressElement
DOM.HTML.HTMLQuoteElement
DOM.HTML.HTMLScriptElement
DOM.HTML.HTMLSelectElement
DOM.HTML.HTMLSourceElement
DOM.HTML.HTMLStyleElement
DOM.HTML.HTMLTableCellElement
DOM.HTML.HTMLTableColElement
DOM.HTML.HTMLTableElement
DOM.HTML.HTMLTableHeaderCellElement
DOM.HTML.HTMLTableRowElement
DOM.HTML.HTMLTableSectionElement
DOM.HTML.HTMLTemplateElement
DOM.HTML.HTMLTextAreaElement
DOM.HTML.HTMLTimeElement
DOM.HTML.HTMLTitleElement
DOM.HTML.HTMLTrackElement
DOM.HTML.HTMLTrackElement.ReadyState
DOM.HTML.HTMLVideoElement
DOM.HTML.History
DOM.HTML.Location
DOM.HTML.Navigator
DOM.HTML.SelectionMode
DOM.HTML.Types
DOM.HTML.URL
DOM.HTML.Window
DOM.Node.ChildNode
DOM.Node.ClassList
DOM.Node.Document
DOM.Node.DocumentType
DOM.Node.Element
DOM.Node.HTMLCollection
DOM.Node.MutationObserver
DOM.Node.MutationRecord
DOM.Node.Node
DOM.Node.NodeList
DOM.Node.NodeType
DOM.Node.NonDocumentTypeChildNode
DOM.Node.NonElementParentNode
DOM.Node.ParentNode
DOM.Node.Types
DOM.Util.FFI
DOM.WebStorage.Event.StorageEvent
DOM.WebStorage.Event.Types
DOM.WebStorage.Storage
DOM.WebStorage.Types
DOM.Websocket.BinaryType
DOM.Websocket.Event.CloseEvent
DOM.Websocket.Event.EventTypes
DOM.Websocket.Event.MessageEvent
DOM.Websocket.Event.Types
DOM.Websocket.ReadyState
DOM.Websocket.Types
DOM.Websocket.WebSocket
DOM.XHR.FormData
DOM.XHR.Types