code: function(name){
      this.doctype = doctypes[name.toLowerCase()] || '<!DOCTYPE ' + name + '>';
      this.terse = this.doctype.toLowerCase() == '<!doctype html>';
      this.xml = 0 == this.doctype.indexOf('<?xml');
    }
docs: Sets the default doctype `name`. Sets terse mode to `true` when
  html 5 is used, causing self-closing tags to end with ">" vs "/>",
  and boolean attributes are not mirrored.
  
  @param {string} name
  @api public