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: ignore script&style&textarea node spacing #183

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

Conversation

j5465
Copy link

@j5465 j5465 commented Jul 29, 2021

使用DOM API新增<style>节点时,新增的dom节点会触发mutationObserver spacingNode 函数。但这个函数内并没有去掉<style>类型,所以就会对<style>内容加空格,导致样式被破坏。

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.

None yet

1 participant