-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
🐛Change toggleAttribute to set/removeAttribute #28472
🐛Change toggleAttribute to set/removeAttribute #28472
Conversation
Co-authored-by: Gabriel Majoulet <[email protected]>
…into add_muted_attribute
Hey @gmajoulet, @newmuis, @Enriqe! These files were changed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it isn't widely supported should we ban Element.prototype.toggleAttribute
as in #27943?
That's a good idea since it shows as supported on iOS, even tho it's only for 13.3 and above |
Added toggleElement to the list of banned attributes, and updated the calls |
Co-authored-by: Gabriel Majoulet <[email protected]>
toggleAttribute is not widely supported so it fails on multiple platforms (iOS <=11, various Android)
Switched to using setAttribute and RemoveAttribute.
Resolves #28463