Module

Web.DOM.Document.XPath

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

#NSResolver Source

#XPathResult Source

#evaluateNumber Source

evaluateNumber :: String -> Node -> Maybe NSResolver -> Maybe XPathResult -> Document -> Effect Number

Convenience function to avoid two funciton calls and possibly mismatched types.

#evaluateString Source

evaluateString :: String -> Node -> Maybe NSResolver -> Maybe XPathResult -> Document -> Effect String

Convenience function to avoid two funciton calls and possibly mismatched types.

#evaluateBoolean Source

evaluateBoolean :: String -> Node -> Maybe NSResolver -> Maybe XPathResult -> Document -> Effect Boolean

Convenience function to avoid two funciton calls and possibly mismatched types.

#snapshot Source

snapshot :: XPathResult -> Effect (Array Node)

High level wrapper around snapshotItem and snapshotLength that directly returns an Array of Nodes.

#customNSResolver Source

#defaultNSResolver Source

defaultNSResolver :: Node -> Document -> Effect NSResolver

Same interface as createNSResolver, but will use the owner document as the nodeResolver if it exists. See MDN.