patrick-steele-idem / morphdom

Fast and lightweight DOM diffing/patching (no virtual DOM needed)
MIT License
3.18k stars 127 forks source link

bug: when a document fragment is passed as toNode only the first child is used #255

Open mihaiav opened 5 months ago

mihaiav commented 5 months ago

If toNode is a document fragment with multiple children and fromNode is an Element, only the firstChild of toNode is patched into fromNode. The siblings of the firstChild fromtoNode are ignored. This is a bug