jorgebucaran / superfine

Absolutely minimal view layer for building web interfaces
https://git.io/super
MIT License
1.56k stars 78 forks source link

patch doesn't replace id of target node #173

Closed ghost closed 4 years ago

ghost commented 4 years ago

I use superfine and with babel-plugin-htm. Both are latest version.

As you can see, patch doesn't remove the div's id. Is that intended?

Screen Shot 2019-08-28 at 8 03 44 PM Screen Shot 2019-08-28 at 8 04 05 PM
ghost commented 4 years ago

As Jorge said in slack, this is intended behavior.

jorgebucaran commented 4 years ago

Superfine/Hyperapp recycle existent content (the node you give it). That's why this happens. If you change the ID to, let's say "foo" it'll change it to "foo".

Long story short, this is expected behavior.