Table of Contents
- Quick Take
- Detect HTML from its doctype
- Prefer HTML when self-closing and open single tags are tied
- Return null when the source contains no decisive markup
- Infer XHTML when most single tags are self-closing
- Detect XHTML from its doctype