@schukai/monster 3.22.0 → 3.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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