[whatwg/dom] Clarify that DOMTokenList's .replace() must preserve the original order (#324)

Per #28, it seems the whole purpose of .replace() is to put the new token in the same place as the old one.  The implementation in Gecko doesn't actually do that.  The current spec says just "Replace token in tokens with newToken", which is not absolutely explicit that order should be preserved.  I think this could use clarification, since the term "replace" is not formally defined anywhere.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/324

Received on Thursday, 1 September 2016 15:26:07 UTC