Steps to reproduce
classList.toggle has a second parameter
force. According to MDN:
If the second argument evaluates to true, add specified class value, and if it evaluates to false, remove it.
Setting the second attribute does not have any effect on IE11.
How to reproduce
- Create a div
- Try to unset a non-existing class with toggle:
The div has class
The div should not have class
You can see a live demo in:
Tested on the following IE versions:
- IE 11.0.15063.0 on Windows 10
- IE 11.63.10586.0 on Windows 10
- IE 11.1066.14393.0 on Windows 10
This has previously been reported to:
The issue states it should be fixed, but further comments and testing indicates it is not fixed.
Comments and activity
Changed Steps to Reproduce
- Microsoft Edge Team
Changed Assigned To to “James M.”
Changed Status to “Won’t fix”
Thank you for providing your feedback on IE11. We are not accepting feedback on Internet Explorer through this portal any longer (unless security related). However, we are pleased to report this feature is fixed in MS Edge and is available in our latest build.
The MS Edge Team