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#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 Nodes.
#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 NSResolverSame interface as createNSResolver, but will use the owner
document as the nodeResolver if it exists. See MDN.