You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// document-fragments dont have attributes so lets not do anything
var hasAttributes = (toNode.nodeType === ELEMENT_NODE || toNode.nodeType === ATTRIBUTE_NODE) &&
(fromNode.nodeType === ELEMENT_NODE || fromNode.nodeType === ATTRIBUTE_NODE);
if (!hasAttributes) {
return;
}
The text was updated successfully, but these errors were encountered:
morphAttrs is throwing exception on various element types.For example if the nodeType is of
DOCUMENT_TYPE_NODE
(10
). I think the same happens on other node types that don't have attributes.I think this line
https://github.com/patrick-steele-idem/morphdom/blob/master/src/morphAttrs.js#L12
should be changed to
The text was updated successfully, but these errors were encountered: