Creates a doctype event with name, optional externalId, and internalSubset.
name
externalId
internalSubset
new(this.name, [this.externalId, this.internalSubset]);