angular/packages/platform-browser/test/dom
Kristiyan Kostadinov 513a4fe05e refactor(core): replace usages of removeChild (#57203)
These changes replace most usages of `removeChild` with `remove`. The latter has the advantage of not having to look up the `parentNode` and ensure that the child being removed actually belongs to the specific parent.

The refactor should be fairly safe since all the browsers we cover support `remove`. [Something similar was done in Components](https://github.com/angular/components/pull/23592) some time ago and there haven't been any bug reports as a result.

PR Close #57203
2024-08-07 16:46:09 +00:00
..
events refactor(core): replace usages of removeChild (#57203) 2024-08-07 16:46:09 +00:00
dom_renderer_spec.ts refactor(core): replace usages of removeChild (#57203) 2024-08-07 16:46:09 +00:00
shadow_dom_spec.ts refactor: migrate platform-* to prettier formatting (#55423) 2024-04-19 13:49:24 -07:00
shared_styles_host_spec.ts test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00