Support innerHTML in serialization recipe
- 主要语言
- JavaScript
- 星标
- 690
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
描述
I understand you don't want to support serialization in this project which makes sense. However, when experimenting with the example recipe I've noticed an issue when serializing the document after Preact mutates it. I end up with elements that have both innerHTML and childNodes[] defined. The innerHTML value seems to have not been cleaned up. I'm not sure where or why this is happening exactly. Any thoughts?
I've added innerHTML and void elements to my implementation here: https://gist.github.com/Stanback/3bb0b19b299668ce0e08922a8ab6876e
贡献指南
这个仓库没有索引到贡献指南
调研方向
从示例序列化方案开始,重现 Preact 修改文档的情况,并使 innerHTML 和 childNodes[] 都保持已定义。将序列化输出与 gist 实现进行比较,重点关注 innerHTML 和 void elements。完成的标准是:修改后,序列化不再保留过时的 innerHTML。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100