Changed syntax for parentNode and currentNode