Skip to content

Commit

Permalink
Disable auto strip-whitespace on template with legacyOptimizations
Browse files Browse the repository at this point in the history
External copy of cl/225100591
  • Loading branch information
dfreedm committed Jan 30, 2019
1 parent c22b87c commit d577c8c
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 d577c8c

Please sign in to comment.