Module
Web.DOM.Document.XPath
- Package
- purescript-web-dom-xpath
- Repository
- purescript-web/purescript-web-dom-xpath
#NSResolver Source
data NSResolver :: Type
#XPathResult Source
data XPathResult :: Type
#evaluate Source
evaluate :: String -> Node -> Maybe NSResolver -> ResultType -> Maybe XPathResult -> Document -> Effect XPathResult
#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.
#evaluateInternal Source
evaluateInternal :: String -> Node -> Nullable NSResolver -> ResultType -> Nullable XPathResult -> Document -> Effect XPathResult
#resultType Source
resultType :: XPathResult -> ResultType
#numberValue Source
numberValue :: XPathResult -> Effect Number
#stringValue Source
stringValue :: XPathResult -> Effect String
#booleanValue Source
booleanValue :: XPathResult -> Effect Boolean
#singleNodeValue Source
singleNodeValue :: XPathResult -> Effect (Maybe Node)
#iterateNextInternal Source
iterateNextInternal :: XPathResult -> Effect (Nullable Node)
#iterateNext Source
iterateNext :: XPathResult -> Effect (Maybe Node)
#snapshotItemInternal Source
snapshotItemInternal :: XPathResult -> Number -> Effect (Nullable Node)
#snapshotItem Source
snapshotItem :: XPathResult -> Natural -> Effect (Maybe Node)
#snapshot Source
snapshot :: XPathResult -> Effect (Array Node)
High level wrapper around snapshotItem
and snapshotLength
that directly returns an Array
of Node
s.
#customNSResolver Source
customNSResolver :: (String -> String) -> NSResolver
#createNSResolver Source
createNSResolver :: Node -> Document -> NSResolver
#lookupNamespaceURI Source
lookupNamespaceURI :: NSResolver -> String -> Maybe String
#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.