https://bugzilla.wikimedia.org/show_bug.cgi?id=51217
--- Comment #8 from Roan Kattouw <[email protected]> --- (In reply to comment #7) > The problem on the VE end is that foster-parenting happens already when the > browser parses the received HTML. Doing a simple string comparison with the > received HTML won't normally work because of quoting differences. This is right. We have no reasonable way to tell whether the browser's HTML parser introduced changes, because inferring anything about the HTML string requires using the browser's HTML parser which... well you get the idea. On the Parsoid end, this is easier to detect, because you have the original DOM. You could serialize that DOM to a string, then parse it into a DOM again, and compare that against the original DOM using .isEqualNode() (if that exists in your DOM library; alternatively, use your DOM differ). -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
