fixup! Implement innerHTML getter for HTML documents

Move more logic into the iterator, break out the serliazer into
a module and implement outerHTML.