Open issa-tseng opened 5 years ago
i think this is very doable and i want to make it happen. the main issue is that intermediate libraries would still need some kind of weird env injection to obtain a document
/createDocumentFragment
somehow, so the biggest headache is not much improved over the current situation.
we have eliminated the latter problem by swallowing the cost of env injection for intermediate libraries. now the intermediate libraries do require a dollar context in order to function. the next step would be to wean all the libraries off dollar onto native operations.
This has been obvious for a long time now, I just want it down in writing.
I didn't want to reimplement the low-level stuff but I also didn't want to be permanently bound to jQuery or Zepto. But the lengths we must go to in order to remain agnostic are intense.
On the other hand, the actual DOM operations we perform today are extremely limited yet mostly what you'd ever need. Maybe we can just implement it ourselves.