Re: [whatwg/dom] Element.replaceChild should allow for `old, new` argument ordering if `new` is a new element and `old` is a child of Element (#847)

I don't think it's developer-unfriendly to throw an error if you get argument order wrong. Magically switching the argument order in some cases but not others is not good API design.

-- 
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/847#issuecomment-598332418

Received on Thursday, 12 March 2020 17:48:51 UTC