From 96624b71a7a512c714ae7ecd09eabe347285b25c Mon Sep 17 00:00:00 2001 From: JoostK Date: Sat, 8 May 2021 20:29:06 +0200 Subject: [PATCH] fix(platform-browser): prevent memory leak of style nodes if shadow DOM encapsulation is used (#42005) Prior to this change, any inserted `'); + + ssh.removeHost(someHost); + expect(someHost.innerHTML).toEqual(''); + }); + it('should remove style nodes on destroy', () => { ssh.addStyles(['a {};']); ssh.addHost(someHost);