News for hackers. Stuff that matters.
Re:The unreasonable effectiveness of simple HTML by pier25 on Wednesday January 27, 2021 @08:49PM (#25937066)
It would be great if browsers implemented other common elements such as sortable data tables, carousels, etc.

https://open-ui.org/

Re:The unreasonable effectiveness of simple HTML by deergomoo on Thursday January 28, 2021 @03:16AM (#25939466)
This is the issue. People (especially on HN) complain about people building un-semantic, inaccessible websites that don't work with JS disabled—and I agree this sucks—but HTML is so limited your only choice is to build the niceties yourself or skip them altogether. Sure, in some circumstances you can progressively enhance (sortable table for example), but many cases having a HTML fallback that still does what you need it to is a ton of extra work.

HTML covers text, painfully basic tables, semantic rectangles (<nav>, <aside>, etc.), form inputs, and embedded media. Basically, anything you could build with a word processor. Outside of that, you're on your own.

JavaScript and CSS are continually improving and are so much more capable than they were even five years ago, but it feels like HTML is just stagnating. Why can't we have new elements every year, with behaviour? Stuff that works just fine out of the box, but can be easily tweaked with CSS or a little sprinkling of JS. The amount of developer time and bandwidth we could save not having to re-invent the wheel for every little thing.

Re:The unreasonable effectiveness of simple HTML by gcblkjaidfj on Wednesday January 27, 2021 @08:59PM (#25937141)
You have a great point. Browser UI elements are stuck in time and all the attention now is directed to things that Google can make money from (e.g. DRM, sandbox for rich apps/extensions, webrtc for their video call products, etc)

but your cited site is not a good advocacy of that. Not even the most exalted UI framework fix the most obvious problems with those either. e.g. tables still won't hold the header and first column(s) while scrolling.

Most of the these elements does not help consuming information, like carousels. And any true UX designer abhor them all for the fallacy they are.

Re:The unreasonable effectiveness of simple HTML by kuschku on Thursday January 28, 2021 @04:52AM (#25940055)
> e.g. tables still won't hold the header and first column(s) while scrolling.

https://caniuse.com/css-sticky

position:sticky works on tables.

Re:The unreasonable effectiveness of simple HTML by gcblkjaidfj on Thursday January 28, 2021 @05:42PM (#25950559)
It's all red :( No support anywhere but Firefox. In fact, I will now use this URL as my main argument in support of firefox!

even the grand-parent, javascript infused solutions, only two out of 20 support this extremely basic and obvious use case.

Web UI standards are a joke. Everyone involved only cares about rich ads and accordions/carrousels which are lame ways to shove lots of content in a badly designed space.

Re:The unreasonable effectiveness of simple HTML by kuschku on Thursday January 28, 2021 @07:27PM (#25951757)
Why? The yellow/striped fields mean it's still supported (as long as you add it to th instead of thead/tr):