ruzafa8 / JiafeiJS

Simple Library for WebComponents
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Improve diff dom algorithm #1

Open ruzafa8 opened 5 months ago

ruzafa8 commented 5 months ago

The actual diff algorithm convert the DOM in an array to iterate over it.

There are better ways to iterate over it, such as using Tree Walkers

ruzafa8 commented 5 months ago

Tree walkers and Node Iterators are iterators. They are not desgined to iterate and modify... I guess this approach is not good at all