code: function cleanDoctype(name) {
    return String(name)
      .toLowerCase()
      .replace(/([a-z]+|\d+)/, ' $1 ')
      .replace(/\.0+(?!\d)/, '')
      .replace(/\.01/, '')
      .replace(/\.2/, '')
      .replace(
        /\b(xhtml|html|mathml|svg|full|basic|tiny|strict|frameset|basic)\b/g,
        character
      )
      .replace(/ t(?:ransitional)?/, '')
      .replace(/\s+/g, '')
  }
docs: /* Clean and simplify a doctype name.