-
rniwa@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=123962 Reviewed by Benjamin Poulain. Source/WebCore: Merge https://chromium.googlesource.com/chromium/blink/+/bd3822ad4ae3fc5d8f89f433a7bf04f697334305 In case we do element.classList.add('a', 'a') we need to ensure that we do not add the same token twice. See http://dom.spec.whatwg.org/#dom-domtokenlist-add * html/DOMTokenList.cpp: (WebCore::DOMTokenList::add): Make sure filtered tokens are unique among themselves. LayoutTests: * fast/dom/HTMLElement/class-list-expected.txt: * fast/dom/HTMLElement/class-list-quirks-expected.txt: * fast/dom/HTMLElement/script-tests/class-list.js: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@158877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
abdb893f