src/xpath.js
function platformResolve(path, root, resolver) {
  let document = getDocument(root)
  let r = document.evaluate(path, root, resolver, FIRST_ORDERED_NODE_TYPE, null)
  return r.singleNodeValue
}
function platformResolve(path, root, resolver) {
  let document = getDocument(root)
  let r = document.evaluate(path, root, resolver, FIRST_ORDERED_NODE_TYPE, null)
  return r.singleNodeValue
}
function platformResolve ( path , root , resolver ) { let document = getDocument ( root ) let r = document . evaluate ( path , root , resolver , FIRST_ORDERED_NODE_TYPE , null ) return r . singleNodeValue }
Find a single node with XPath `path` using `document.evaluate`.
Find a single node with XPath path using document . evaluate .