@schukai/monster 3.21.1 → 3.22.0
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
|
@@ -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