Support Text nodes in DOM