You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by starsibi October 27, 2024
Am I missing something here? I'm facing an issue where the expected output, <div class="child2">child2</div>, is missing in testHTML, but it's actually returning <div class="child3">child3</div>. Could you share your thoughts on this?
Thanks in advance!
var strategy = new DiffingStrategyPipeline();
strategy.AddDefaultOptions();
// Create the differ and pass in the strategy
var differ = new HtmlDiffer(strategy);
// Use the differ to compare markup
var controlHtml = "<div class="parent">\r\n <div class="child1">child1\r\n <div class="child2">child2\r\n <div class="child3">child3\r\n";
var testHtml = "<div class="parent">\r\n <div class="child1">child1\r\n <div class="child3">child3\r\n";
var diffs = differ.Compare(controlHtml, testHtml);
```</div>
The text was updated successfully, but these errors were encountered:
First thought is that the test and control HTML is not valid, it's missing closing DIV tags. I am not sure what the html tree looks like in that case and that may be the reason for the behavior.
Discussed in #46
Originally posted by starsibi October 27, 2024
Am I missing something here? I'm facing an issue where the expected output
, <div class="child2">child2</div>,
is missing in testHTML, but it's actually returning<div class="child3">child3</div>
. Could you share your thoughts on this?Thanks in advance!
The text was updated successfully, but these errors were encountered: