code: function serializeElement (node, context, eventTarget) {
    var c, i, l;
    var name = node.nodeName.toLowerCase();
  
    // opening tag
    var r = '<' + name;
  
    // attributes
    for (i = 0, c = node.attributes, l = c.length; i < l; i++) {
      r += ' ' + exports.serializeAttribute(c[i]);
    }
  
    r += '>';
  
    // child nodes
    r += exports.serializeNodeList(node.childNodes, context, null, eventTarget);
  
    // closing tag, only for non-void elements
    if (!voidElements[name]) {
      r += '</' + name + '>';
    }
  
    return r;
  }
docs: Serialize a DOM element.