Skip to content

Unchanged element is being shown as removed and added #48

Description

@dchacke

https://teamwork.github.io/visual-dom-diff/

Original content:

<ul><li>An unordered list.</li></ul>
<ol><li>An ordered list.</li></ol>
<p>Some common text. Some common text. Some common text.</p>

Changed content:

<ol><li>An ordered list.</li></ol>
<p>An added paragraph.</p><p>Some common text. Some common text. Some common text.</p>

Actual outcome:

<div><ul class="vdd-removed"><li>An unordered list.</li></ul><ol class="vdd-added"><li>An ordered list.</li></ol>
<ol class="vdd-removed"><li>An ordered list.</li></ol><del class="vdd-removed">
</del><p class="vdd-added">An added paragraph.</p><p>Some common text. Some common text. Some common text.</p></div>
Image

Expected outcome:

The unchanged list should show as unchanged.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions