mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
f66c9ae749
Prior to this change, any inserted `<style>` nodes into shadow dom trees would be retained in memory, even after the shadow dom tree has been removed. This commit fixes the memory leak by tracking the inserted `<style>` nodes per host element, such that removal of the host element also releases the style nodes. Fixes #36655 PR Close #42005