Precise DOM morphing
morphing typescript dom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Save a couple of lines

+1 -3
+1 -3
morphlite.ts
··· 24 24 if (from.tagName === to.tagName) { 25 25 if (to.attributes.length > 0) morphAttributes(from, to); 26 26 if (to.childNodes.length > 0) morphChildNodes(from, to, idMap); 27 - } else { 28 - from.replaceWith(to.cloneNode(true)); 29 - } 27 + } else from.replaceWith(to.cloneNode(true)); 30 28 } 31 29 } 32 30