|
|
|
sorvell
|
Fixes #2081: make Polymer.dom(element).getDistributedNodes and Polyme…
…
…r.dom(element).getDestinationInsertionPoints() always return at least an empty array (was generating exception under Shadow DOM); make element.getContentChildNodes and element.getContentChildren always return at least an empty array when a selector is passed that does not find a <content> (was generating exception under Shadow DOM)
|
f966381
|
The
element.getContentChildNodes(selector)generates an exception when run under Shadow DOM when theselectorargument does not correspond to an existing<content>element. When run under Shady DOM, this returns an empty array. We should normalize this behavior.The root cause is that
Polymer.dom(element).getDistributedNodesgenerates an exception under Shadow DOM when element does not have this api. This should be normalized as well.