From 8d278a26a00f74d46edaaffbb72473b1f3e1ce2d Mon Sep 17 00:00:00 2001 From: Shivam singh <140813296+this-is-shivamsingh@users.noreply.github.com> Date: Wed, 11 Dec 2024 19:22:30 +0530 Subject: [PATCH] Fix[ISSUE_1819]: Support for serialising ShadowRoot Element for Chrome 131 onwards (#1820) * feat: added support for shadowRoot elements for custom templates and slot elements * chore: test fix --- packages/dom/src/clone-dom.js | 16 ++++----- packages/dom/src/serialize-dom.js | 6 +++- packages/dom/test/helpers.js | 47 +++++++++++++++++++++++++ packages/dom/test/serialize-dom.test.js | 22 +++++++++++- 4 files changed, 81 insertions(+), 10 deletions(-) diff --git a/packages/dom/src/clone-dom.js b/packages/dom/src/clone-dom.js index 938d54f21..e73a54e2d 100644 --- a/packages/dom/src/clone-dom.js +++ b/packages/dom/src/clone-dom.js @@ -84,20 +84,20 @@ export function cloneNodeAndShadow(ctx) { /** * Use `getInnerHTML()` to serialize shadow dom as