Precise DOM morphing
morphing typescript dom
0
fork

Configure Feed

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

Fix more tests

+2 -2
+1 -1
dist/morphlite.js
··· 31 31 to.hasAttribute(name) || from.removeAttribute(name); 32 32 for (const { name, value } of to.attributes) 33 33 from.getAttribute(name) !== value && from.setAttribute(name, value); 34 - if (isInput(from) && isInput(to)) 34 + if (isInput(from) && isInput(to) && from.value !== to.value) 35 35 from.value = to.value; 36 36 if (isOption(from) && isOption(to)) 37 37 from.selected = to.selected;
+1 -1
src/morphlite.ts
··· 29 29 for (const { name } of from.attributes) to.hasAttribute(name) || from.removeAttribute(name); 30 30 for (const { name, value } of to.attributes) from.getAttribute(name) !== value && from.setAttribute(name, value); 31 31 32 - if (isInput(from) && isInput(to)) from.value = to.value; 32 + if (isInput(from) && isInput(to) && from.value !== to.value) from.value = to.value; 33 33 if (isOption(from) && isOption(to)) from.selected = to.selected; 34 34 if (isTextArea(from) && isTextArea(to)) from.value = to.value; 35 35 }