Commit 3979c6c
committed
Fix GetInnerText skipping table tabs/newlines when HTML has whitespace between elements
Use NextElementSibling instead of NextSibling for table cell and row
sibling checks, so whitespace text nodes between elements don't prevent
tab/newline insertion.1 parent 5a1d528 commit 3979c6c
2 files changed
Lines changed: 3 additions & 2 deletions
File tree
- src
- AngleSharp.Css.Tests/Extensions
- AngleSharp.Css/Extensions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments