3p/closure-library-20130212/third_party/closure/goog/dojo/dom/query.js
function(node, root) {
    var pn = node.parentNode;
    while (pn) {
      if (pn == root) {
        break;
      }
      pn = pn.parentNode;
    }
    return !!pn;
  }
function(node, root) {
    var pn = node.parentNode;
    while (pn) {
      if (pn == root) {
        break;
      }
      pn = pn.parentNode;
    }
    return !!pn;
  }
function ( node , root ) { var pn = node . parentNode ; while ( pn ) { if ( pn == root ) { break ; } pn = pn . parentNode ; } return ! ! pn ; }
test to see if node is below root
test to see if node is below root