We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d50eee5 commit 0e4f937Copy full SHA for 0e4f937
1 file changed
src/morphlex.ts
@@ -328,7 +328,7 @@ class Morph {
328
#morphOneToOne(from: ChildNode, to: ChildNode): void {
329
// Fast path: if nodes are exactly the same object, skip morphing
330
if (from === to) return
331
- if (from.isEqualNode?.(to)) return
+ if (from.isEqualNode(to)) return
332
333
if (from.nodeType === ELEMENT_NODE_TYPE && to.nodeType === ELEMENT_NODE_TYPE) {
334
if ((from as Element).localName === (to as Element).localName) {
0 commit comments