hyperHTML
hyperHTML copied to clipboard
hyperHTML.adopt(liveNode)
After the introduction of viperHTML.adoptable = true
, capable of creating a compact and compression friendly way to delimit all interpolations of a template literals, hyperHTML would like to re-introduce this ability lost wtih v2 release because unstable.
All the basics are working but there are still two cases I cannot code cover because failing:
- [ ] nodes with just textContent behaves differently, when
text
action is used the adoption shuold work properly - [ ] when there are levels outside those already explored,
findNode(...)
internal function does not handle well thelevel
variable together with theindex
Once these two outstanding bugs are fixed, I will think about releasing v3 to include adopt within the library and branch out v2 for eventual emergency fixes.