Closed pigheartCN closed 3 years ago
chrome v80 之后不支持 document.registerElement() 了。可以先降级 chrome 版本来使用这个功能。 如果有时间的话,也请你帮忙修复一下。 出问题的代码在 https://github.com/apache/incubator-weex-cli/blob/master/packages/%40weex/plugins/debug/frontend/src/assets/inspector/ui/UIUtils.js#L1175
有两个方案供你参考 1、按照现行 ChromeDevTools frontend 版本同步修改。 2、尝试 polyfill 。
document.registerElement() 我说咋老是报错。。
element.createShadowRoot() 也不支持了。
@cnryb 将最新 devtools-frontend 重新编译之后,放入工程中是否可行?
一定要同步修改么?
这个修复了吗?低版本chrome哪里可以下载到啊。。。
百度
在2020年09月14日 18:43,Fancy 写道:
这个修复了吗?低版本chrome哪里可以下载到啊。。。
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
@cnryb 将最新 devtools-frontend 重新编译之后,放入工程中是否可行?
一定要同步修改么?
这个当然是更好的选择。有时间的话你可以试试看,来个PR呀。
这个问题还没解决,还有人维护吗?
solved in #630
document.registerElement() 用了document-register-element.js, element.createShadowRoot() 换成了 element.attatchShadowRoot()仍然会有问题,源码中的label button都不支持shadowRoot,除此之外还有别的问题
to see: https://www.jianshu.com/p/372a43a3477b
详情请看:https://www.jianshu.com/p/372a43a3477b