From 679bf6d4d88517c6d7c57eca7dbcced1cd538fd7 Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Sun, 21 May 2023 13:21:56 -0700 Subject: [PATCH] fix custom elements --- packages/dom-expressions/src/client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dom-expressions/src/client.js b/packages/dom-expressions/src/client.js index d5be3759..007aff72 100644 --- a/packages/dom-expressions/src/client.js +++ b/packages/dom-expressions/src/client.js @@ -67,8 +67,8 @@ export function template(html, isCE, isSVG) { }; // backwards compatible with older builds const fn = isCE - ? () => (node || (node = create())).cloneNode(true) - : () => untrack(() => document.importNode(node || (node = create()), true)); + ? () => untrack(() => document.importNode(node || (node = create()), true)) + : () => (node || (node = create())).cloneNode(true); fn.cloneNode = fn; return fn; }