def wrap_inner(node, tag):
children = list(node.childNodes)<EOL>wrap_node = node.ownerDocument.createElement(tag)<EOL>for c in children:<EOL><INDENT>wrap_node.appendChild(c)<EOL><DEDENT>node.appendChild(wrap_node)<EOL>
Wrap the given tag around the contents of a node.