Fix rrdom bugs (#1222)

* fix: rrdom bug

1. fix one bug of the diff algorithm
2. omit srcdoc attribute of iframe

* use linked list to iterate children

* fix the bug that the children of shadowRoot don't get diffed

* add test cases

* add change log
This commit is contained in:
Yun Feng
2023-06-02 19:44:00 +10:00
committed by GitHub
parent a606109519
commit b798f2dbc0
3 changed files with 115 additions and 43 deletions

View File

@@ -0,0 +1,8 @@
---
'rrdom': patch
---
Fix: rrdom bugs
1. Fix a bug in the diff algorithm.
2. Omit the 'srcdoc' attribute of iframes to avoid overwriting content.