@schukai/monster 3.21.1 → 3.22.1
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/source/dom/updater.mjs +12 -0
- package/source/types/version.mjs +1 -1
- package/test/cases/monster.mjs +1 -1
package/package.json
CHANGED
package/source/dom/updater.mjs
CHANGED
@@ -543,6 +543,18 @@ function internalTemplateLookUp(container, key, ref, path) {
|
|
543
543
|
}
|
544
544
|
}
|
545
545
|
|
546
|
+
const rootNode = container.getRootNode();
|
547
|
+
if (rootNode instanceof ShadowRoot) {
|
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
|
+
}
|
555
|
+
}
|
556
|
+
}
|
557
|
+
|
546
558
|
return findDocumentTemplate(templateID, container);
|
547
559
|
}
|
548
560
|
|
package/source/types/version.mjs
CHANGED
package/test/cases/monster.mjs
CHANGED