[Webkit-unassigned] [Bug 123962] New: DOMTokenList::add can add duplicated values if arguments had duplicated values
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 6 23:45:29 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=123962
Summary: DOMTokenList::add can add duplicated values if
arguments had duplicated values
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Keywords: WebExposed
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rniwa at webkit.org
CC: darin at apple.com, ap at webkit.org, sam at webkit.org,
arv at chromium.org, akling at apple.com
DOMTokenList::add(const Vector<String>& tokens, ExceptionCode& ec) ensures that newly added tokens are unique existing the existing tokens but don't ensure that newly added tokens are themselves unique.
e.g. element.classList.add('a b a') results in element.className being 'a b a' instead of 'a b'.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list