diff --git a/lib/mixins/template-stamp.html b/lib/mixins/template-stamp.html index 643740da62..331e32fc2e 100644 --- a/lib/mixins/template-stamp.html +++ b/lib/mixins/template-stamp.html @@ -379,7 +379,7 @@ * @return {DocumentFragment} Content fragment */ static _contentForTemplate(template) { - let templateInfo = template.__templateInfo; + let templateInfo = template._templateInfo; return (templateInfo && templateInfo.content) || template.content; } diff --git a/test/runner.html b/test/runner.html index 8df2426d90..ad9d00e356 100644 --- a/test/runner.html +++ b/test/runner.html @@ -26,6 +26,7 @@ var suites = [ 'unit/globals.html', 'unit/property-accessors.html', + 'unit/template-stamp.html', 'unit/property-effects.html', 'unit/property-effects-template.html', 'unit/path-effects.html', diff --git a/test/unit/template-stamp.html b/test/unit/template-stamp.html new file mode 100644 index 0000000000..70ad52bfc2 --- /dev/null +++ b/test/unit/template-stamp.html @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + +