Commit 494d477
* Check for existence of `Element` when comparing DOM-nody-things (#7786)
* Fall back to deep equality for presumed DOM nodes if `Element` is not in scope (#7786)
* Remove IE<9 specific fallback DOM node comparison (#7786)
* Check for global DOM `Node` in `isDomNode` (#7786)
In a real browser and JSDOM the check will use DOM-Level-3 `Node.isEqualNode`
and for everything else a deep equality check should do the trick.
* Check that `isEqualNode` is a function and remove duck typing from `isDomNode` (#7786)
* Add changelog entry for streamlined DOM node comparisons in `expect` (#7786)
* Correct visible PR number in CHANGELOG.md
1 parent 1983ad1 commit 494d477
4 files changed
Lines changed: 49 additions & 24 deletions
File tree
- packages/expect/src
- __tests__
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1996 | 1996 | | |
1997 | 1997 | | |
1998 | 1998 | | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
1999 | 2021 | | |
2000 | 2022 | | |
2001 | 2023 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
420 | 430 | | |
421 | 431 | | |
422 | 432 | | |
| |||
537 | 547 | | |
538 | 548 | | |
539 | 549 | | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
540 | 560 | | |
541 | 561 | | |
542 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
150 | 135 | | |
151 | 136 | | |
152 | 137 | | |
| |||
263 | 248 | | |
264 | 249 | | |
265 | 250 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
272 | 254 | | |
273 | 255 | | |
274 | 256 | | |
| |||
0 commit comments