Commit Graph
2 Commits
Author SHA1 Message Date
Robin North e72308280f Replace instances of ES6 const keyword with var 2018-01-18 20:47:49 +00:00
Robin North b98e3ef914 Fix DOMException in switchElementsAlt()
Clone attribute nodes before setting on `oldEl` to prevent the following error:

```
DOMException: Failed to execute 'setNamedItem' on 'NamedNodeMap': The node provided is an attribute node that is already an attribute of another Element; attribute nodes must be explicitly cloned.
```
2018-01-17 17:07:02 -05:00