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