src/xpath.js
function findChild(node, name, position) {
  for (node = node.firstChild ; node ; node = node.nextSibling) {
    if (nodeName(node) === name && --position === 0) break
  }
  return node
}
function findChild(node, name, position) {
  for (node = node.firstChild ; node ; node = node.nextSibling) {
    if (nodeName(node) === name && --position === 0) break
  }
  return node
}
function findChild ( node , name , position ) { for ( node = node . firstChild ; node ; node = node . nextSibling ) { if ( nodeName ( node ) === name && -- position === 0 ) break } return node }
Find the child of the given node by name and ordinal position.
Find the child of the given node by name and ordinal position .