///|
pub using @tok {type TagKind}

///|
pub using @tok {type TagToken}

///|
pub using @tok {type DoctypeInfo}

///|
pub using @tok {type HtmlToken}

///|
pub using @tok {type TokenizedHtml}

///|
/// Tokenize an HTML string without building a DOM tree.
///
/// Set `collect_errors=true` to collect tokenizer diagnostics in the returned
/// `TokenizedHtml`. Set `xml_coercion=true` to replace XML-invalid text and
/// comment characters during tokenization.
pub fn tokenize(
  html : StringView,
  collect_errors? : Bool = false,
  xml_coercion? : Bool = false,
) -> TokenizedHtml {
  @tok.tokenize(html, collect_errors~, xml_coercion~)
}