more work on the tree/etree/htmlparser stuff