Lasse Reichstein Nielsen wrote:
"su****@gmail.com" <su****@gmail.com> writes:
Do you know of any tool which can compare the DOM structure
of the content of the web browser?
Why not compare HTML directly? The DOM structure will match
the HTML, except that some whitespaces might be lost.
The DOM structure will only match the mark-up if the mark-up is
sufficiently structurally valid to be directly translated into a DOM
structure. If the receiving browser sees a need to apply
error-correction to the mark-up it receives it is entirely possible that
DOM structure will not reflect the mark-up, and not reflect it in
different ways in different browsers. The crux of the OPs problem may
actually be an attempt to program the scripted interactions with a DOM
resulting from structurally invalid mark-up, with its consequent need to
cope with seemingly random and arbitrary variation in DOM structures
resulting from browser error-correction.
Richard.