Commit 0ace0e3
committed
fix: comparison of node names are case insensitive
when the parser in AngleSharp does not know the element type, it will store the name of the node/element in the NodeName property in upper case. This can lead to false negative results. E.g. if one parses "<svg><path></path></svg>" and selects the `<path />` and want to compare that to a "<path>" element parsed alone, the second will be treated as an unknown element, since it was not parsed in the context of a "<svg>" element. The two elements will have the same name though, just in different cases and should thus be equal.1 parent 3cbd08f commit 0ace0e3
File tree
2 files changed
+17
-2
lines changed- src
- AngleSharp.Diffing.Tests/Strategies/NodeStrategies
- AngleSharp.Diffing/Core
2 files changed
+17
-2
lines changedLines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
33 | 46 | | |
34 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments