code: function copyAttributes (src, dst, ignored) {
    ignored = ignored || [];
    
    const srcAttribs = Object.keys(src.attribs || src.attributes);
    for (let i = 0; i < srcAttribs.length; ++i) {
      if (!ignored.test(srcAttribs[i], $(dst), $(src))) {
        dst.attribs[srcAttribs[i]] = src.attribs[srcAttribs[i]];
      }
    }
  }
docs: copy all DOM attributes from src to dst