Use Node.ELEMENT_NODE instead of literal value; Use Node.COMMENT_NODE instead of document.COMMENT_NODE

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>