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
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Using the `UseDefaultOptions()` method is equivalent to setting the following op
30
30
vardiffs=DiffBuilder
31
31
.Compare(controlHtml)
32
32
.WithTest(testHtml)
33
-
.RemoveComments()
33
+
.IgnoreComments()
34
34
.Whitespace(WhitespaceOption.Normalize)
35
35
.IgnoreDiffAttributes()
36
36
.Build();
@@ -45,18 +45,18 @@ The library comes with a bunch of options (internally referred to as strategies)
45
45
46
46
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.
47
47
48
-
### Remove comments
49
-
Enabling this strategy will remove all comment nodes from the comparison. Activate by calling the `RemoveComments()` method on a `DiffBuilder` instance, e.g.:
48
+
### Ignore comments
49
+
Enabling this strategy will ignore all comment nodes during comparison. Activate by calling the `IgnoreComments()` method on a `DiffBuilder` instance, e.g.:
50
50
51
51
```csharp
52
52
vardiffs=DiffBuilder
53
53
.Compare(controlHtml)
54
54
.WithTest(testHtml)
55
-
.RemoveComments()
55
+
.IgnoreComments()
56
56
.Build();
57
57
```
58
58
59
-
_NOTE: Currently, the remove comment strategy does NOT remove comments from CSS or JavaScript embedded in `<style>` or `<script>` tags.__
59
+
_**NOTE**: Currently, the ignore comment strategy does NOT remove comments from CSS or JavaScript embedded in `<style>` or `<script>` tags._
60
60
61
61
### Whitespace handling
62
62
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.
0 commit comments