Element.classList.toggle() does not support second parameter

Issue #635932

Details

Created
Jul 21, 2014
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

my_div.classList.toggle('foo’, false); // Should always remove the ‘foo’ class
my_div.classList.toggle('bar’, true); // Should always add the ‘bar’ class

Expected Results:

The class should be added/removed based on the truthiness of the second argument

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Tony S.”

      Changed Assigned To from “Tony S.” to “Eugene V.”

      Changed Assigned To from “Eugene V.” to “IE F.”

      Changed Status

    You need to sign in to your Microsoft account to add a comment.

    Sign in