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
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);
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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!
Beta Was this translation helpful? Give feedback.
All reactions