[Webkit-unassigned] [Bug 148582] New: classList.toggle(name, force) treats undefined `force` argument as false

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Aug 28 11:25:51 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=148582

            Bug ID: 148582
           Summary: classList.toggle(name, force) treats undefined `force`
                    argument as false
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: m.goleb+bugzilla at gmail.com

Test case:

var div = document.createElement('div');
div.classList.toggle('a', undefined); // <div></div>

`toggle` should add the class and not treat `undefined` as false.

Chrome & Edge also share this bug. Firefox implements it correctly.

Chrome bug report: https://code.google.com/p/chromium/issues/detail?id=489665

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150828/7e7a3dd9/attachment.html>


More information about the webkit-unassigned mailing list