classList.toggle(name, force) treats undefined `force` argument as false

Fixed, not yet flighted Issue #4472242

Details

Created
Sep 3, 2015
Privacy
This issue is public.
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

var div = document.createElement(‘div’);
div.classList.toggle('a’, undefined);
div.classList.contains(‘a’); // should be true

Expected Results:

classList.toggle('string’, undefined) should be treated in the same way as .toggle(‘a’); the second parameter should be ignored.

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To from “Travis L.” to “Shuo D.”

      Changed Status to “Confirmed”

      Changed Assigned To from “Shuo D.” to “Navin J.”

      Changed Status from “Confirmed” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Assigned To from “Navin J.” to “IE S.”

      Changed Status from “In progress” to “Fixed”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

      Changed Assigned To from “IE S.” to “Navin J.”

      Changed Status from “Fixed, not yet flighted” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Status from “In progress” to “In code review”

      Changed Status from “In code review” to “In progress”

      Changed Assigned To from “Navin J.” to “IE S.”

      Changed Status from “In progress” to “Fixed”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

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

    Sign in