legacyCompat.parseHtml(markup: string,xml?: boolean): LegacyDomNode
Mojo::DOM->new(html) / Mojo::DOM->new->xml(1)->parse(xml) — parses markup and returns
its root node. xml toggles case-sensitive tag matching (real XML/custom elements like
<Genre> in a ComicInfo.xml file) vs HTML's traditionally case-insensitive tag names; see
LegacyDomNode's own docs for what's covered.