Fix DOMException in switchElementsAlt() (fixes #103) #104

Merged
robinnorth merged 1 commits from robinnorth-patch-1 into master 2018-01-17 17:07:03 -05:00
Showing only changes of commit 8ef195f9ac - Show all commits

View File

@@ -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())
}
}