Re: oldNode.replaceWith(...collection) edge case

On Tue, Jan 20, 2015 at 2:22 PM, Glen Huang <curvedmark@gmail.com> wrote:
> jQuery doesn’t support that out of performance and code size reasons:
>
> http://bugs.jquery.com/ticket/14380
> https://github.com/jquery/jquery/pull/1276#issuecomment-24526014
>
> Both reasons shouldn’t be a problem with the native DOM.

They are. I also realized that if we did this we would have to make
before(), after(), and replaceWith() identical when passed the context
object. Not allowing the context object and requiring usage of the
correct method seems simpler.


-- 
https://annevankesteren.nl/

Received on Tuesday, 20 January 2015 13:34:47 UTC