getDistributedNodes()
returns nodes that are already removed under shady dom
#2283
Labels
getDistributedNodes()
returns nodes that are already removed under shady dom
#2283
Hi, I'm not sure if this is expected behavior. Say I have an element
<x-test>
that selects and inserts content from its parent,<x-test>
and from my parent, I call it like that,
<parent-element>
where
<parent-element>
'slist
array looks likeeverything works like a champ so far. Calling
Polymer.dom(content).getDistributedNodes()
returns the 3 items.However, if I remove an item from the list,
while the template renders just fine,
getDistributedNodes()
still returns the full 3 items - when I expect 2 items. This works correctly under native shadow dom behaviour and I thought it should be normalised.Here is a repro: http://jsbin.com/xebelufika/edit?html,output
Try adding some items, log the nodes, remove some, log the nodes, then add again. It seems that adding an item corrects this behavior.
Thanks so much,
Jason
The text was updated successfully, but these errors were encountered: