From f9fb639267f1591c9fe8aa0e87f460fef5a9531c Mon Sep 17 00:00:00 2001 From: "bigopon.777@gmail.com" Date: Thu, 20 Sep 2018 21:57:28 +1000 Subject: [PATCH] fix(StaticViewStrategy): use DOM.Element instead of HTMLTemplateElement --- src/view-strategy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/view-strategy.js b/src/view-strategy.js index a381085c..527f89cb 100644 --- a/src/view-strategy.js +++ b/src/view-strategy.js @@ -271,7 +271,7 @@ export class StaticViewStrategy { factory: ViewFactory; constructor(config: string | HTMLTemplateElement | IStaticViewConfig) { - if (typeof config === 'string' || config instanceof HTMLTemplateElement) { + if (typeof config === 'string' || (config instanceof DOM.Element && config.tagName === 'TEMPLATE')) { config = { template: config };