diff --git a/lib/mixins/element-mixin.js b/lib/mixins/element-mixin.js index 33773f9f03..a445edaf97 100644 --- a/lib/mixins/element-mixin.js +++ b/lib/mixins/element-mixin.js @@ -300,9 +300,8 @@ export const ElementMixin = dedupingMixin(base => { let template = /** @type {PolymerElementConstructor} */ (this).template; if (template) { if (typeof template === 'string') { - let t = document.createElement('template'); - t.innerHTML = template; - template = t; + console.error('template getter must return HTMLTemplateElement'); + template = null; } else { template = template.cloneNode(true); } diff --git a/test/smoke/ordering-test.html b/test/smoke/ordering-test.html index b4c7831837..7e8a3c1160 100644 --- a/test/smoke/ordering-test.html +++ b/test/smoke/ordering-test.html @@ -18,10 +18,10 @@