From 4ea69c2d5ca9c436d22271745fa18ce8361d4983 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Fri, 21 Aug 2015 17:08:33 -0700 Subject: [PATCH] Fixes #2334: when composing nodes in shady dom, check if a node is where we expect it to be before removing it from its distributed position. We do this because the node may have been moved by Polymer.dom in a way that triggered distribution of its previous location. The node is already where it needs to be so removing it from its parent when it's no longer distributed is destructive. --- src/mini/shady.html | 8 ++- test/unit/polymer-dom-content.html | 78 ++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+), 1 deletion(-) diff --git a/src/mini/shady.html b/src/mini/shady.html index cfa5f938cc..0caa80eab4 100644 --- a/src/mini/shady.html +++ b/src/mini/shady.html @@ -300,7 +300,13 @@ // process removals for (var i=0, d=0, s; (i + + + + +