WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
172845
DOMTokenList.replace('a', 'a') removes 'a'.
https://bugs.webkit.org/show_bug.cgi?id=172845
Summary
DOMTokenList.replace('a', 'a') removes 'a'.
Kent Tamura
Reported
2017-06-01 18:12:18 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-06-01 18:28:03 PDT
Pass classList.replace("a", "a") with attribute value "a a a b" (HTML node) So presumably this has already been fixed?
Chris Dumez
Comment 2
2017-06-01 18:29:33 PDT
(In reply to Chris Dumez from
comment #1
)
> Pass classList.replace("a", "a") with attribute value "a a a b" (HTML node) > > So presumably this has already been fixed?
Likely a dupe of
Bug 171388
. I am confirming.
Chris Dumez
Comment 3
2017-06-01 18:32:30 PDT
(In reply to Chris Dumez from
comment #2
)
> (In reply to Chris Dumez from
comment #1
) > > Pass classList.replace("a", "a") with attribute value "a a a b" (HTML node) > > > > So presumably this has already been fixed? > > Likely a dupe of
Bug 171388
. I am confirming.
I can reproduce the bug with shipping Safari but not with Safari Technology 30 (which is not even the latest one).
Kent Tamura
Comment 4
2017-06-06 20:04:25 PDT
Oh, I tested with Safari TP 29. Sorry for the noise.
Chris Dumez
Comment 5
2017-06-06 21:00:46 PDT
(In reply to Kent Tamura from
comment #4
)
> Oh, I tested with Safari TP 29. Sorry for the noise.
No worries. Thank you for reporting such bugs.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug