calling parent() instead of undocumented getParentNode()