[Webkit-unassigned] [Bug 172845] New: DOMTokenList.replace('a', 'a') removes 'a'.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 1 18:12:18 PDT 2017


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

            Bug ID: 172845
           Summary: DOMTokenList.replace('a', 'a') removes 'a'.
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Major
          Priority: P2
         Component: HTML DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: tkent at chromium.org
                CC: cdumez at apple.com

1. Open http://w3c-test.org/dom/nodes/Element-classlist.html
2. Observe "classList.replace("a", "a") with attribute value "a a a b" (HTML node)" test.

This test fails with the following message:

> assert_equals: wrong class after modification expected "a b" but got "b"

Existing "a" token was unexpectedly removed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170602/4fa37d70/attachment.html>


More information about the webkit-unassigned mailing list