@social-mail/social-mail-client 1.4.192 → 1.4.193

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28016,9 +28016,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28016
28016
  e.appendChild(msg);
28017
28017
  return;
28018
28018
  }
28019
- msg.innerHTML = html;
28019
+ const domParser = new DOMParser();
28020
+ const doc = domParser.parseFromString(html, "text/html");
28020
28021
  let firstVisibleElement = null;
28021
- for (const node of descendentIterator(msg)) {
28022
+ for (const node of descendentIterator(doc.body)) {
28022
28023
  if (!firstVisibleElement && node.nodeType === Node.TEXT_NODE) {
28023
28024
  const {
28024
28025
  parentElement
@@ -28063,6 +28064,13 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
28063
28064
  iterator.target = "_blank";
28064
28065
  }
28065
28066
  }
28067
+ let start = doc.body.firstChild;
28068
+ while (start) {
28069
+ const next = start.nextSibling;
28070
+ start.remove();
28071
+ msg.appendChild(start);
28072
+ start = next;
28073
+ }
28066
28074
  const container = document.createElement("msg-root");
28067
28075
  msg.setAttribute("msg", "msg");
28068
28076
  container.appendChild(msg);