diff --git a/lib/switches.js b/lib/switches.js index d87ae0b..86beff3 100644 --- a/lib/switches.js +++ b/lib/switches.js @@ -22,7 +22,7 @@ module.exports = { if (newEl.hasAttributes()) { const attrs = newEl.attributes; for (var i = 0; i < attrs.length; i++) { - oldEl.attributes.setNamedItem(attrs[i]) + oldEl.attributes.setNamedItem(attrs[i].cloneNode()) } }