isDocumentType

Type: Function

Checks whether the given node is a document type node

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

Arguments

  1. node

    (Required)

    Type: Node | NULL

    The node to test. Null is accepted and will always return false.

Returns

Type: Boolean

Whether the node matches