Is there a polyfill for getDestinationInsertionPoints?

I came across a situation where it would be useful to find out if a given node was distributed in a contentnode. There is a built-in Shadow DOM function node.getDestinationInsertionPoints (), which is very useful for this purpose, but I do not see its version in the polyfill world.

I can work around this problem by doing my own check on the node parent chain, but it would be better to rely on the standard (?) GetDestinationInsertionPoints () function. Does - or will - Shadow DOM polyfill support this in older browsers?

+3
source share
1 answer

ShadowDOM polyfill getDestinationInsertionPoints(). 0.3.x: https://github.com/polymer/polymer/releases

+1

Source: https://habr.com/ru/post/1542577/


All Articles