HTML comparison moved into DOM tree