- From: Russell <notifications@github.com>
- Date: Mon, 09 May 2022 10:34:23 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 9 May 2022 17:34:35 UTC
I came up with [a technique](https://jsfiddle.net/f92jgc7a/3/) to work around the behavior that @WaltzingPenguin mentioned a few comments up. Basically, just check if the element contains **only text nodes** that contain **only whitespace** and if so purge them all. Do this in `connectedCallback` and any time nodes are added to or removed from the host with a `MutationObserver`. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/624#issuecomment-1121383400 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/624/1121383400@github.com>
Received on Monday, 9 May 2022 17:34:35 UTC