Add node type constant and traverse the DOM tree methods