move visit method to HtmlVisitor