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

Avoid adding empty strings to classList #4340

Conversation

timongh
Copy link
Contributor

@timongh timongh commented Jul 24, 2023

classList.add 的参数不能有空字符串

见:https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add#exceptions

(中文文档中没有关于异常的描述)

@the1812
Copy link
Owner

the1812 commented Jul 24, 2023

这个在 1a12667 已经修复了, 只是还没合到 preview-fixes

@the1812 the1812 closed this Jul 24, 2023
@timongh timongh deleted the avoid-adding-empty-str-to-class-list branch July 24, 2023 13:19
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.

2 participants