@schukai/monster 3.22.0 → 3.22.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
package/source/dom/updater.mjs
CHANGED
@@ -545,10 +545,13 @@ function internalTemplateLookUp(container, key, ref, path) {
|
|
545
545
|
|
546
546
|
const rootNode = container.getRootNode();
|
547
547
|
if (rootNode instanceof ShadowRoot) {
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
548
|
+
const host = rootNode?.host;
|
549
|
+
if (host && host.hasAttribute(ATTRIBUTE_UPDATER_INSERT_TEMPLATE_ID)) {
|
550
|
+
templateID = host.getAttribute(ATTRIBUTE_UPDATER_INSERT_TEMPLATE_ID);
|
551
|
+
template = findDocumentTemplate(templateID, container);
|
552
|
+
if (template instanceof HTMLTemplateElement) {
|
553
|
+
return template;
|
554
|
+
}
|
552
555
|
}
|
553
556
|
}
|
554
557
|
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED