Maybe use Node.ELEMENT_NODE instead of "1"?