How to distribute (insert) content nodes programmatically

前端 未结 2 1222
隐瞒了意图╮
隐瞒了意图╮ 2021-02-06 19:18

Is there a way to programmatically distribute (insert) content from lightDOM to ShadowDOM?

I would like to wrap every single child node into an element. For example :

2条回答
  •  半阙折子戏
    2021-02-06 19:49

    There is quite old issue at W3C Bugzilla: #18429 - [Shadow]: Specify imperative API for node distribution

    But as for now, there is nothing in spec about that.

提交回复
热议问题