@schukai/monster 3.21.1 → 3.22.0
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
@@ -543,6 +543,15 @@ function internalTemplateLookUp(container, key, ref, path) {
|
|
543
543
|
}
|
544
544
|
}
|
545
545
|
|
546
|
+
const rootNode = container.getRootNode();
|
547
|
+
if (rootNode instanceof ShadowRoot) {
|
548
|
+
templateID = rootNode.host.getAttribute(ATTRIBUTE_UPDATER_INSERT_TEMPLATE_ID);
|
549
|
+
template = findDocumentTemplate(templateID, container);
|
550
|
+
if (template instanceof HTMLTemplateElement) {
|
551
|
+
return template;
|
552
|
+
}
|
553
|
+
}
|
554
|
+
|
546
555
|
return findDocumentTemplate(templateID, container);
|
547
556
|
}
|
548
557
|
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED