diff --git a/lib/mixins/template-stamp.js b/lib/mixins/template-stamp.js index aeeb849468..167fbe530a 100644 --- a/lib/mixins/template-stamp.js +++ b/lib/mixins/template-stamp.js @@ -10,7 +10,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN import '../utils/boot.js'; import { dedupingMixin } from '../utils/mixin.js'; -import { legacyOptimizations } from '../utils/settings.js'; const walker = document.createTreeWalker(document, NodeFilter.SHOW_ALL, null, false); @@ -205,7 +204,7 @@ export const TemplateStamp = dedupingMixin( if (!template._templateInfo) { let templateInfo = template._templateInfo = {}; templateInfo.nodeInfoList = []; - templateInfo.stripWhiteSpace = legacyOptimizations || + templateInfo.stripWhiteSpace = (outerTemplateInfo && outerTemplateInfo.stripWhiteSpace) || template.hasAttribute('strip-whitespace'); this._parseTemplateContent(template, templateInfo, {parent: null});