added HtmlElement#traverse()
refactoring of HtmlElement#traverse()
cosmetic changes