AngleSharp / AngleSharp.Diffing

A library that makes it possible to compare two AngleSharp node lists and get a list of differences between them.
MIT License
37 stars 6 forks source link

Add support for aria- boolean attributes to BooleanAttributeComparer #18

Open egil opened 2 years ago

egil commented 2 years ago

There are a bunch of aria- attributes that are boolean attributes. These should be supported by the BooleanAttributeComparer.

On the surface, it looks like it is just a matter of updating the attributes listed in the hashset here: https://github.com/AngleSharp/AngleSharp.Diffing/blob/aa216ef0c8b26d849d81adee443dafe6126d442f/src/AngleSharp.Diffing/Strategies/AttributeStrategies/BooleanAttributeComparer.cs#L14-L41

And obviously make sure all tests cover the new attributes.