Freelance software grandad
software created
extended or repaired
Follow me on Mastodon
Applications, Libraries, Code
Talks & Presentations
I've set thing up now so that each node forwards the reference count to its owning document. Once the document is destroyed each node destroys its children. The only thing you have to keep track off then are nodes which have been removed from the tree, or which have been created but not yet added (i.e. those obtained via cloneNode or create*).
Freelance software grandad
software created
extended or repaired
Follow me on Mastodon
Applications, Libraries, Code
Talks & Presentations