Skip to content

Commit d69f4ae

Browse files
author
Egil Kristoffer Gorm Hansen
committed
Cleanup master branch, added dev branch
1 parent 5874d45 commit d69f4ae

12 files changed

+4
-460
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ var diffs = DiffBuilder
3838
.Build();
3939
```
4040

41+
See more about what each option does in the following sections.
42+
4143
## Diffing options/strategies:
4244
The library comes with a bunch of options (internally referred to as strategies), for the following three main steps in the diffing process:
4345

4446
1. Filtering out irrelevant nodes and attributes
4547
2. Matching up nodes and attributes for comparison
4648
3. Comparing matched up nodes and attributes
4749

48-
The following section document the current built-in strategies that are available. A later second will describe how to built your own strategies, to get very tight control of the diffing process.
50+
The following section documents the current built-in strategies that are available. A later second will describe how to built your own strategies, to get very tight control of the diffing process.
4951

5052
### Remove comments
5153
Enabling this strategy will remove all comment nodes from the comparison. Activate by calling the `RemoveComments()` method on a `DiffBuilder` instance, e.g.:
@@ -58,7 +60,7 @@ var diffs = DiffBuilder
5860
.Build();
5961
```
6062

61-
_NOTE: Currently, the remove comment strategy does NOT remove comments from CSS or JavaScript embedded in `<style>` or `<script>` tags.__
63+
_NOTE: Currently, the remove comment strategy does NOT remove comments from CSS or JavaScript embedded in `<style>` or `<script>` tags._
6264

6365
### Whitespace handling
6466
Whitespace can be a source of false-positives when comparing two HTML fragments. Thus, the whitespace handling strategy offer different ways to deal with it during a comparison.

src/Comparers/DiffIgnoreAttributeCompareStrategy.cs

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Egil.AngleSharp.Diffing.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,4 @@
1212
</PackageReference>
1313
</ItemGroup>
1414

15-
<ItemGroup>
16-
<Folder Include="Matchers\" />
17-
</ItemGroup>
18-
1915
</Project>

src/Filters/RemoveCommentsNodeFilter.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Filters/WhitespaceOnlyNode.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

src/IDiffBuilder.cs

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/Comparers/Chainable/ChainedCompareStrategyTest.cs

Lines changed: 0 additions & 128 deletions
This file was deleted.

tests/Comparers/DiffIgnoreAttributeCompareStrategyTest.cs

Lines changed: 0 additions & 64 deletions
This file was deleted.

tests/Core/HtmlDifferenceEngineTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,6 @@ public void Test2()
389389
results[0].Target.ShouldBe(DiffTarget.Element);
390390
}
391391

392-
// TODO: ComparisonContext provides access to the root element for control and test nodes during the entire comparison phase
393-
// TODO: Detection of unmatched/unexpeced nodes should be moved to
394-
395392
#region NodeFilters
396393
private static bool NoneNodeFilter(ComparisonSource source) => true;
397394
private static bool RemoveCommentNodeFilter(ComparisonSource source) => source.Node.NodeType != NodeType.Comment;

0 commit comments

Comments
 (0)