def surroundContents(rng, copyInto):
    DOM.appendChild(copyInto, rng.extractContents())
    rng.insertNode(copyInto)
Surround the contents of the range with the given element, and put the
dataset/ETHPy150Open pyjs/pyjs/pyjswidgets/pyjamas/selection/Range.py/surroundContents