Chapter 4. DOM manipulation

Using DOM APIs

TODO introduction to accessors like document.body, how to traverse the tree, how to change it

Using the template element

TODO https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_templates_and_slots

Sanitizing HTML

TODO https://github.com/cure53/DOMPurify

Appeasing the XML gods

TODO https://html.spec.whatwg.org/multipage/parsing.html#coercing-an-html-dom-into-an-infoset