Skip to content
New issue

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

fix: 修复 子应用 html 上的属性会被丢失的问题(#908) #909

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

J10240221
Copy link

Checklist
  • [- ] 提交符合commit规范
  • [ x] npm run test通过
详细描述

const parsedDocument = parser.parseFromString(template, "text/html");

// 无论 template 是否包含html,documentElement 必然是 HTMLHtmlElement
let html = parsedDocument.documentElement as HTMLHtmlElement;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

经过chrome检验, 无论template中是否有html标签,parsedDocument instanceof HTMLDocument 都是true

@J10240221
Copy link
Author

@yiludege 大大,麻烦看下这个issue 和解决的pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant