From ed79071315382c87517ca70644848a422ab523de Mon Sep 17 00:00:00 2001 From: Kevin Schaaf Date: Fri, 20 Jul 2018 20:29:52 -0700 Subject: [PATCH] Updates based on code review. --- lib/elements/dom-if.html | 2 ++ lib/elements/dom-module.html | 20 ++++++++----- lib/legacy/class.html | 28 ++++-------------- lib/mixins/element-mixin.html | 42 ++++++++++++++++++++------- lib/utils/templatize.html | 3 ++ test/unit/strict-template-policy.html | 25 ++++++++-------- 6 files changed, 65 insertions(+), 55 deletions(-) diff --git a/lib/elements/dom-if.html b/lib/elements/dom-if.html index 0560c450cd..87b8b62760 100644 --- a/lib/elements/dom-if.html +++ b/lib/elements/dom-if.html @@ -255,6 +255,8 @@ if (c$ && c$.length) { // use first child parent, for case when dom-if may have been detached let parent = c$[0].parentNode; + // Instance children may be disconnected from parents when dom-if + // detaches if a tree was innerHTML'ed if (parent) { for (let i=0, n; (i +