code: function transferAttributes(attrs, elt) {
    for(var i = 0, n = attrs.length; i < n; i++) {
      var name = attrs[i][0], value = attrs[i][1];
      if (elt.hasAttribute(name)) continue;
      elt._setAttribute(name, value);
    }
  }
docs: For each attribute in attrs, if elt doesn't have an attribute by that name, add the attribute to elt XXX: I'm ignoring namespaces for now