References — bi-03-html-parsing
Primary sources first. In-tree Chromium docs beat any external source, including these modules.
- WHATWG HTML Standard §13 Parsing HTML documents — tokenization and tree construction. Read the "in table" and "in table text" modes in full; they are shorter than they look.
- WHATWG HTML Standard — fragment parsing algorithm, and the "appropriate place for inserting a node" algorithm.
third_party/blink/renderer/core/html/parser/— start fromhtml_document_parser.h, and readhtml_document_parser_fastpath.hfor the fragment fast path.- html5lib test data format (used by WPT and by most non-browser HTML parsers).
- Blink's
SpecMapping.mdfor the spec→directory mapping.
When a claim here proves stale, record it in PROGRESS.md section 7.