diff --git a/lib/mixins/template-stamp.html b/lib/mixins/template-stamp.html index aed815c46f..a848dc0034 100644 --- a/lib/mixins/template-stamp.html +++ b/lib/mixins/template-stamp.html @@ -256,6 +256,9 @@ * @param {!NodeInfo} nodeInfo Node metadata for current template. */ static _parseTemplateChildNodes(root, templateInfo, nodeInfo) { + if (root.localName === 'script' || root.localName === 'style') { + return; + } for (let node=root.firstChild, parentIndex=0, next; node; node=next) { // Wrap templates if (node.localName == 'template') { diff --git a/test/unit/property-effects-elements.html b/test/unit/property-effects-elements.html index c44cae2435..d1ec12fb9f 100644 --- a/test/unit/property-effects-elements.html +++ b/test/unit/property-effects-elements.html @@ -68,6 +68,16 @@ literal1 {{cpnd1}} literal2 {{cpnd2}}{{cpnd3.prop}} literal3 {{computeCompound(cpnd4, cpnd5, 'literalComputed')}} literal4 {{objectWithDash.binding-with-dash}} + +