html: move the pre-only-element.html test to the tree construction tests
html: implement a simple close tag insertion algorithm