The new switchElementsAlt switch method throws a DOMException for me when trying to copy <head> attributes:
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.
Cloning the attribute node before setting it on oldEl when switching resolves this issue.
The new `switchElementsAlt` switch method throws a `DOMException` for me when trying to copy `<head>` attributes:
`
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.
`
Cloning the attribute node before setting it on `oldEl` when switching resolves this issue.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The new
switchElementsAltswitch method throws aDOMExceptionfor me when trying to copy<head>attributes: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.Cloning the attribute node before setting it on
oldElwhen switching resolves this issue.Fixed by #104.