3 ms·
I'm curious as to why HTML.ify is necessary. Shouldn't HTML itself be a function? If passed a string it then that's HTML.find and if passed a dom node or one of
by Tloewald 13y ago
I'm curious as to why HTML.ify is necessary. Shouldn't HTML itself be a function? If passed a string it then that's HTML.find and if passed a dom node or one of the weird collections of DOM nodes the native APIs provide then it HTML.ify's them.
I like the idea if not so much the execution. It needs a partner for smoothing over event handling.
- nadabu 13y agoEvent handling is in the works, either bundled or separate: https://github.com/nbubna/HTML/issues/1 https://github.com/nbubna/HTML/issues/1 HTML is the root element (<html>), so it cannot be a function. HTML.ify() is only needed if you have a different library/interface that hands you an element, not retrieved via find() or dot-traversal.