On Sun, Jan 18, 2015 at 4:40 AM, Glen Huang <curvedm...@gmail.com> wrote:
> To generalize the use case, when you have a bunch of nodes, some of which 
> need to be inserted before a node, and some of which after it, you are likely 
> to want `replaceWith` could accept the context node as an argument.

This sound somewhat reasonable but I haven't been able to reproduce
this in existing libraries. E.g. in Jquery

  $("div").replaceWith([$("div"), "<b>test</b>"])

ends up as just <b>test</b>...


-- 
https://annevankesteren.nl/

Reply via email to