Element.wrapIn

Wraps this element inside the given element. It's like this.replaceWith(what); what.appendchild(this);

Given: <b>cool</b>, if you call b.wrapIn(new Link("site.com", "my site is ")); you'll end up with: <a href="site.com">my site is <b>cool</b></a>.

class Element
wrapIn
out (ret) { assert (this.parentNode is what); assert (ret is what); }

Meta