Skip to content

Can AngleSharp be used to create a diff of/compare of two HTML fragments? #820

@egil

Description

@egil

This looks like a great library, that I could potentially use in my Razor Components Testing Library. One of my needs is the ability to intelligently compare to HTML(5) fragments and assert if they are equal. Is that possible with AngleSharp?

Currently I am using XMLUnit for generating the comparison, but since it is XML based it does make certain things harder.

Note: When comparing, I don't want insignificant whitespace to be counted as an error, also, the order of css classes defined in the class="..." attribute should not matter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions