Skip to content

Commit

Permalink
Merge pull request #5470 from Polymer/legacyOpt-no-strip
Browse files Browse the repository at this point in the history
Disable auto `strip-whitespace` on template with legacyOptimizations
  • Loading branch information
dfreedm authored Jan 30, 2019
2 parents c22b87c + d577c8c commit 2e19ae0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mixins/template-stamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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});
Expand Down

0 comments on commit 2e19ae0

Please sign in to comment.