Fix libdom departures from "always return a ref" in public API. The DOM test code expects nodes returned by libdom APIs to always be reffed. So this change refs them. The remaining leaks detected by address sanitiser in the dom test suite are a problem with the DOM test generator: * For test_level1_html_HTMLSelectElement08, the problem is that in the while loop, it doesn't unref `voption` at the end of the loop, in the test code. * For test_level1_html_HTMLTableElement07, the problem is the while loop doesn't unref `vrow` at the end of the loop in the test code. * For test_level1_html_HTMLTableElement09, it's the same for variable, `vbodies`.
DOMTSHandler: Unref nodes in for-each blocks In order to satisfy (hopefully) the last of the sanitize checks, ensure that we unref nodes during `for-each` iterations. Signed-off-by: Daniel Silverstone <firstname.lastname@example.org>