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
+