Live data from Hacker News

HTML Can Do That

chrisburnell.com

211–220 of 249 posts

Re: HTML Can Do That

#212
post #20

Related to this, I’d love that HTML natively support sortable tables. This is a common need but every single time I have to reimplement it.

You want client side table sorting? It's really easy to do this with server rendered HTML. Put a link with the sort param in the column headers and be done.

It's a bit annoying when the sorting leaks into URLs people share, a bit like if the scroll position would be automatically included there.

Re: HTML Can Do That

#213
post #26
post #20

Related to this, I’d love that HTML natively support sortable tables. This is a common need but every single time I have to reimplement it.

That's what javascript is supposed to be for. All of this is what javascript is supposed to be for. HTML describes layout, CSS describes style, JS adds interactivity. Want sortable tables? Get a jquery plugin and spend five minutes, done. This was all solved a decade or more ago.

HTML has done interactivity before JS existed. No reason to not add support for sorting tables. JS is better suited to only handle non-standard cases where no native functionality exist as browser vendors can afford to spend infinitely more time to make sorting better than you can spend on doing it for one website.

Re: HTML Can Do That

#215

The color input looks different depending on your browser and OS. https://master.dev/blog/the-color-input-the-color-picker/ Firefox uses the native OS color picker, which in Windows 11 still looks unchanged from Windows 95.

That's fine, everything doesn't have to look the same everywhere. It does matter when there's functionality a site relies on but it's not available in one out more browser/OS combinations.

Exactly. I want tings to work as defined by the OS I deliberately chose.

Re: HTML Can Do That

#216

also supports "srcset" which can make the image component responsive. Hope they add a placeholder to it which can account for loading state.

I find using with and is more flexible, particularly with multiple image formats (AVIF and JPG in my case).

I wish both srcset and elements wouldn't be so redundantly verbose by forcing you to specify the full (relative) URL for each image when they usually only differ by a small part specifying the resolution or format. Sure, transfer-encoding will mostly nullify the overhead but it's still annoying when editing the HTML manually.

Re: HTML Can Do That

#217
post #4

The “hidden until found” feature surprised me. What’s the use case for something like that?

It won't be an intended use case, but it might be a convenient place to put poisoned content for the “benefit” of scrapers… Though humans will accidentally find it too, so using a details tag with appropriate summary as a warning would be more friendly than just hidden content. It'll still get opened, but the user at least has a way of closing it again afterwards. Also before using it I'd want to check what old UAs i…

What would be the advantage of using this attribute compared to the various ways to permanently hide elements?

Re: HTML Can Do That

#218

Earlier quoted context omitted.

Once backend and frontend became two separate teams frontend people didn't want to keep asking backend to make logic changes for state, so frontend took things into their own hands. The mistake was making it two separate teams.

the frontend team can write a BFF to make all pages render server-side. there is an advocacy group for keeping oauth2 clients out of browsers which gives this idea some _political_ merit. in ways more than one, SPA is not the only solution when a dedicated _frontend team_ is employed.

The separation of teams happened before the BFF pattern came into existence so all frontend engineers became specialists in frameworks like React. Unless you can do it with React, FE's won't touch a BFF or anything else for that matter.

Re: HTML Can Do That

#219

Popover, dialog, invoker commands, our entire production app uses these everywhere and it works really well! The fact that dialogs and popovers are rendered on the "top layer" and that nested popovers are also automatically stacked on top of each other and have 'cascading close' shows how well these standards were designed. The only hard thing is still to position a popover near the element that triggers it, such as…

> LLMs are also terrible at these new standards. If they even know about them, they often think they're not baseline yet… It doesn’t have to be that way. You could create a Skill [1] that tells the agent to use modern css; the newer models like Opus 5 are probably much better with modern css. Google released a set of skills at I/O called Modern Web Guidance [2] that steer coding agents to use modern css and best prac…

Can we stop calling them skills? They're mostly just documents like any other. Call them cheat-sheets or guides.

Wrapping an .md file in all this circus, with lingo carefully designed to hide the fact that under the hood you're really just dumping another text file into the LLM's context , helps nobody but people's AI psychosis.

But I guess "my LLM can use skills" sounds a lot cooler than "my LLM can read text files", so we'd rather keep pretending really hard.

Re: HTML Can Do That

#220

Earlier quoted context omitted.

> LLMs are also terrible at these new standards. If they even know about them, they often think they're not baseline yet… It doesn’t have to be that way. You could create a Skill [1] that tells the agent to use modern css; the newer models like Opus 5 are probably much better with modern css. Google released a set of skills at I/O called Modern Web Guidance [2] that steer coding agents to use modern css and best prac…

Can we stop calling them skills? They're mostly just documents like any other. Call them cheat-sheets or guides. Wrapping an .md file in all this circus, with lingo carefully designed to hide the fact that under the hood you're really just dumping another text file into the LLM's context , helps nobody but people's AI psychosis. But I guess "my LLM can use skills" sounds a lot cooler than "my LLM can read text files"…

I have started hearing echoes of how LLMs are "conscious" on every forum I go. Strange times.
Post reply on HN