News for hackers. Stuff that matters.
Re:HTML Data List Element by seph-reed on Wednesday June 23, 2021 @11:35AM (#27605725)
I think a lot of people think that HTML Elements === HTML Code, but they don't. JS and HTML are just two different ways of telling the browser how to build a DOM.

And depending on what you're doing, either can be more efficient than the other.

Re:HTML Data List Element by strogonoff on Wednesday June 23, 2021 @11:51AM (#27605928)
Being able to extend native widgets with custom behaviors could help make things much more elegant, though—such as augmenting in-browser autocomplete (to highlight search criteria, etc.) on top of already existing DOM with just a little extra JS, rather than putting together a completely bespoke one from a bunch of divs and a lot of code (counting third-party dependencies).
Re:HTML Data List Element by seph-reed on Wednesday June 23, 2021 @04:06PM (#27609487)
It would definitely be nice. That being said, I do think it'd make more sense to let people "roll their own" for at least a few years first. Just to get a really good idea of what the problem space is, and what defaults people are likely to expect.

I've seen a lot of projects try to set things up from the beginning without enough information, and it ends up falling a little flat (or worse, getting in the way).