doctype

.doctype type:{DocumentType? = null} -> Any

If type is not null, it sets the document type to its value. The document type affects its final output style. If it's null, the name of the current document type is returned.

Return

the lowercase name of the current document type if type is null

Parameters

type

(optional) type to assign to the document

Values