getDocumentNode

Type: Function

Get the document related to this node.

Contrary to Node's ownerDocument property, this will return the document itself if a document is passed.

Refer to blueprintQuery for more information on how to import and use this function.

Arguments

  1. blueprint

    (Required)

    Type: Blueprint

    The blueprint in which to consider the nodes

  2. node

    (Required)

    Type: Node

    The node to evaluate

Returns

Type: Document

The documentNode related to this node