Closed Bug 1299837 Opened 8 years ago Closed 8 years ago

DOMTokenList.replace needs to add the new token in the same place as the old one

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1293563

People

(Reporter: ayg, Unassigned)

References

Details

<https://github.com/whatwg/dom/issues/28> indicates that the idea of .replace() is that the new token should go in the same location as the old one.  In <https://github.com/whatwg/dom/issues/324> I requested this be clarified.  dom/nodes/Element-classlist.html in wpt tests this.
I think this should be fixed in bug 1293563. That bug basically makes every DOMTokenList.replace wpt pass except the "Deduplicates also other tokens", could you double-check, just in case?
Confirmed that it was fixed.  My testing build was just a bit too old, it seems.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.