Without a browser DOM, build a Doc class whose nodes can be nested and given text, and that prints itself as HTML.
Without a browser DOM, build a Doc class whose nodes can be nested and given text, and that prints itself as HTML.
The discussion opens with the full question.