parent

Returns the parent of this node, if any.

Node doesn't have a parent when it is the document, or it does not belong to the DOM tree.