Skip to content

Commit

Permalink
more.
Browse files Browse the repository at this point in the history
  • Loading branch information
botandrose-machine committed Jan 14, 2025
1 parent 890fd79 commit 6ef3b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PR.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This is the tasty meat of the PR. By removing the two-pass mode, and further lev
- morph it and move on
- create a new node from scratch as a last result

We've also been able to simplify and improve findIdSetMatch and findSoftMatch as well, by no longer bailing early, since persisted nodes are no longer lost when they're removed. This means we can always find and morph the best match.
We've also been able to simplify and improve findIdSetMatch and findSoftMatch as well, by no longer bailing early, since persisted nodes are no longer lost when they're removed. This means we can always find and morph the best match. Finally, there's just a lot less code! Less functions, less branches, less lines, less complexity.

### OuterHTML morph uses the same algorithm as innerHTML morph
This was a big win. Until now, the outerHTML morph used a complex bespoke algorithm that was entirely separate from the core morphChildren loop. This meant it wasn't nearly as well-tested, and both algorithms had peculiar and subtle strengths and weaknesses. Now, they've been merged together into one smaller general algorithm, which has the best qualities of both.
Expand Down

0 comments on commit 6ef3b72

Please sign in to comment.