We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f07e7 commit 7d7fad8Copy full SHA for 7d7fad8
1 file changed
src/Template/Template.js
@@ -173,6 +173,8 @@
173
// subtree and replace them with cloned <template>'s from source.
174
// We must do this because only the source templates have proper .content.
175
TemplateImpl.fixClonedDom = function(clone, source) {
176
+ // do nothing if cloned node is not an element
177
+ if (!source.querySelectorAll) return;
178
// these two lists should be coincident
179
var s$ = source.querySelectorAll(TEMPLATE_TAG);
180
var t$ = clone.querySelectorAll(TEMPLATE_TAG);
0 commit comments