From 86dd2ae9372cabe1e2fe0b4eb7867d471fabae0f Mon Sep 17 00:00:00 2001 From: this-is-shivamsingh Date: Wed, 11 Dec 2024 18:50:47 +0530 Subject: [PATCH] feat: added support for shadowRoot elements for custom templates and slot elements --- 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