We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
head
appendChild
子应用中往父容器 head 节点动态 appendChild 新节点时,新节点实际挂载在子应用里面
Steps to reproduce the behavior: 1. 2.
const head = document.querySelector('head'); const linkTag = document.createElement('link'); linkTag.setAttribute('rel', 'shortcut icon'); linkTag.setAttribute('type', 'image/svg'); linkTag.setAttribute('id', 'new-favicon'); linkTag.setAttribute('href', iconUrl); head.appendChild(linkTag);
Expected behavior 1. 2. 子应用中往父容器 head 节点 appendChild 新节点时,新节点应该添加到父级 head 中
求告知这种需求应该怎么实现
The text was updated successfully, but these errors were encountered:
#2502
Sorry, something went wrong.
子应用要操作主应用的 dom 就属于沙箱逃逸了,这个不符合预期。 如果一定要这么做只能把沙箱关了。
No branches or pull requests
What happens?
子应用中往父容器
head
节点动态appendChild
新节点时,新节点实际挂载在子应用里面How To Reproduce
Steps to reproduce the behavior: 1. 2.
Expected behavior 1. 2. 子应用中往父容器
head
节点appendChild
新节点时,新节点应该添加到父级head
中Context
求告知这种需求应该怎么实现
The text was updated successfully, but these errors were encountered: