Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Group: Latest code in SVN
Submitted By: Joerg Werner (bug55cv)
>Assigned to: RBRi (rbri)
Summary: Tag balancing differences in HtmlUnit and real browsers
In case of incomplete/unbalanced HTML source code, browsers like Firefox and Chrome might create different DOM trees depending on the document type. For example, "<p><table></table>" is balanced to "<p><table></table></p>" in Quirks mode and to "<p></p><table></table>" in Standard mode. HtmlUnit seems to apply the Quirks balancing strategy in Standard mode as well. This is not a big deal except that XPaths copied from one of these browsers might or might not work in HtmlUnit without modification.