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
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -130,8 +130,8 @@ By using the inline attribute `diff:regex` on the element containing the text no
130
130
131
131
The above control text would use case-insensitive regular expression to match against a test text string (e.g. "HELLO WORLD 2020").
132
132
133
-
### Ignore attribute
134
-
If the `diff:ignore="true"` attribute is used on a control element (`="true"` implicit/optional), all their attributes and child nodes are skipped/ignored during comparison, including those of the test element, the control element is matched with.
133
+
### Inline Ignore attribute
134
+
If the inline `diff:ignore="true"` attribute is used on a control element (`="true"` implicit/optional), all their attributes and child nodes are skipped/ignored during comparison, including those of the test element, the control element is matched with.
135
135
136
136
In this example, the `<h1>` tag, it's attribute and children are considered the same as the element it is matched with:
137
137
@@ -155,7 +155,7 @@ Activate this strategy by calling the `EnableIgnoreAttribute()` method on a `Dif
155
155
vardiffs=DiffBuilder
156
156
.Compare(controlHtml)
157
157
.WithTest(testHtml)
158
-
.EnableIgnoreAttribute()
158
+
.EnableInlineIgnore()
159
159
.Build();
160
160
```
161
161
@@ -167,13 +167,15 @@ var diffs = DiffBuilder
167
167
168
168
#### CSS selector-cross tree matcher (node, attr)
169
169
170
-
### Compare options
171
-
#### Name/Type comparer (node, attr)
172
-
#### Content comparer (text, attr)
173
-
#### Content regex comparer (text, attr)
174
-
#### IgnoreCase content comparer (text, attr)
170
+
### Attr Compare options
171
+
#### Name comparer (attr)
172
+
#### Content comparer (attr)
173
+
#### Content regex comparer (attr)
174
+
#### IgnoreCase attr comparer (attr)
175
+
#### Regex attr comparer (attr)
175
176
#### Class attribute comparer (attr)
176
177
#### Boolean-attribute comparer (attr)
178
+
177
179
See rules at https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#boolean-attributes
0 commit comments