PureXML/Sources/HTML
Mihaela Mihaljevic 6810c1c51a feat(html): add HTML5 document tree construction with insertion modes
Add parseDocument, which builds a full HTML document by the HTML5
tree-construction insertion modes (initial, before html, before head, in head,
after head, in body):

- the result always has an html root containing a head and a body, whether or
  not the source spelled those elements out.
- head-only elements (title, meta, link, base, style, script, and the rest)
  are routed into the head; flow content starts and fills the body.
- explicit html, head, and body tags and their attributes are honored.

The existing fragment parser (parse) is unchanged, so tag-soup fragments still
round-trip without an implied wrapper.

Closes #69
2026-06-08 09:24:11 +02:00
..
HTMLDocumentBuilder.swift feat(html): add HTML5 document tree construction with insertion modes 2026-06-08 09:24:11 +02:00
HTMLEntities.swift chore: silence clean-build warnings 2026-06-08 07:32:28 +02:00
HTMLSerializer.swift feat(html): add HTML5 document tree construction with insertion modes 2026-06-08 09:24:11 +02:00
HTMLToken.swift feat(html): lenient HTML parser and serializer 2026-06-08 07:12:42 +02:00
HTMLTokenizer.swift feat(html): lenient HTML parser and serializer 2026-06-08 07:12:42 +02:00
HTMLTreeBuilder.swift feat(html): lenient HTML parser and serializer 2026-06-08 07:12:42 +02:00