src/lib/XmlNode.js
/**
  Document that contains this node, or `null` if this node is not associated
  with a document.

  @type {XmlDocument?}
  @public
  */
Document that contains this node, or `null` if this node is not associated
with a document.
Document that contains this node or ` null ` if this node is not associated with a document .
get document() {
    return this.parent
      ? this.parent.document
      : null;
  }
get document ( ) { return this . parent ? this . parent . document : null ; }
Document that contains this node, or `null` if this node is not associated
with a document.
Document that contains this node or ` null ` if this node is not associated with a document .