diff --git a/lib/elements/dom-bind.html b/lib/elements/dom-bind.html
index 4b128b86..67bbf92a 100644
--- a/lib/elements/dom-bind.html
+++ b/lib/elements/dom-bind.html
@@ -57,6 +57,9 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
constructor() {
super();
+ if (Polymer.strictTemplatePolicy) {
+ throw new Error(`strictTemplatePolicy: dom-bind not allowed`);
+ }
this.root = null;
this.$ = null;
this.__children = null;
diff --git a/lib/elements/dom-if.html b/lib/elements/dom-if.html
index dc41e243..87b8b627 100644
--- a/lib/elements/dom-if.html
+++ b/lib/elements/dom-if.html
@@ -255,8 +255,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
if (c$ && c$.length) {
// use first child parent, for case when dom-if may have been detached
let parent = c$[0].parentNode;
- for (let i=0, n; (i
diff --git a/test/unit/strict-template-policy.html b/test/unit/strict-template-policy.html new file mode 100644 index 00000000..8596bda4 --- /dev/null +++ b/test/unit/strict-template-policy.html @@ -0,0 +1,359 @@ + + + +
+ + + + + + +
+