Skip to content

Commit fe9d57f

Browse files
authored
Update README.md
1 parent 8867774 commit fe9d57f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,18 @@ The _control_ nodes represents the expected, i.e. how the nodes are expected to
55

66
## Usage
77

8-
8+
Filters:
9+
- remove comments
10+
- whitespace only text nodes
11+
12+
Matchers:
13+
- searching matcher, that will match nodes of the same type, and, optionally, element with the same element name.
14+
- css selector matcher nodes and for attributes
15+
16+
Comparers:
17+
- ignore consecutive whitespace comparer inside textnodes (not in strings in script and style tags).
18+
- regex comparer
19+
- ignore case comparer (attr/text)
920

1021
## Difference engine details
1122
The heart of the library is the `HtmlDifferenceEngine` class, which goes through the steps illustrated in the activity diagram below to determine if the control nodes is the same as the test nodes.

0 commit comments

Comments
 (0)