Live data from Hacker News

HTML Can Do That

chrisburnell.com

191–200 of 249 posts

Re: HTML Can Do That

#191
Sadly, Firefox for Android don't support , needing a polyfill.

Also, I run in issues where clients like to customize the style of the drop-down selector in desktop. However, it could be styled, the element itself, and with the help of a little JavaScript that makes this visible element I lay when needed and accesible.

Re: HTML Can Do That

#192
post #5

I'm that minutia in your statistics that is still rocking NoScript in 2026, enabling JavaScript on a site-by-site basis, but this is increasingly difficult with the modern web. Hopefully these and others modern HTML features gain adoption, along with realizing perhaps a Single Page Application isn't necessary in most instances. I don't often have to write frontend code, but when I do, there is very little in terms of…

I always try to develop having in mind that some people have disabled JavaScript or isn't running the last version of Firefox or Chromium bases browsers. So if someone enters with disabled JavaScript, keeps having the basic functionality of search, navigate and download. I do webservices for public digital libraries that shares public domain stuff and I true believe that always should be accessible to everyone.

Re: HTML Can Do That

#193
post #122

Earlier quoted context omitted.

HTML describes the structure of a document, not really the layout. If HTML had or tags, sure. But CSS determines the layout via display/position properties.

is inline is block , and are your grid, row and column. CSS improves on describing layout with positioning but HTML was still doing that before CSS even came along.

Suddenly it's 1999

Re: HTML Can Do That

#194
post #64

>popover Why are we cool with popups again? Anything that interrupts and blocks content is annoying, and is nearly guaranteed to make me leave immediately. It can be used responsibly, but it almost never is.

I find it very useful to create complex dropdowns. Also, to generate popover that shows previews...

Re: HTML Can Do That

#195

ngl i was surprised for the modal dialogs i always thought we needed javascript as i have been doing so forever with jquery a bit off topic but wish we could bring back and . just good old fashioned stuff from the late 90s

They are yet here. Tables are being used a lot. Also, you have

Re: HTML Can Do That

#196
post #33

Earlier quoted context omitted.

Single page applications are one of the most anoying web patterns i know of. Please just let me have one page for each ting to do so i actually can bookmark it properly.

Ive made SPAs in Blazor that make it a point to update the URL whenever a "navigation" occurs. I also made it a point to ensure refreshing or loading the URL restored the state. It's a small problem compared to the ease of use for development you can gain via Blazor, so I don't see any reason not to solve it.

This. I also create a lot of Blazor apps and I always make sure things like filters are based on GET query parameters.

But this can be done in any JavaScript framework and ofcourse Vanilla JavaScript. It takes some effort, but creates a much better user experience.

Re: HTML Can Do That

#197

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…

The top-layer + cascading-close behavior is exactly why we finally dropped a bunch of custom overlay managers.

On positioning: we got farther with CSS anchor positioning once we stopped treating it like absolute offsets and started from "this is the preferred edge, then let the browser flip." Still awkward for nested context menus, but far less brittle than measuring getBoundingClientRect in a resize observer.

Re: HTML Can Do That

#198
post #123
post #118

Earlier quoted context omitted.

> Want sortable tables? Get a jquery plugin and spend five minutes, done. I want sortable tables without having to rely on a third-party plugin to a third-party library. HTML describes content, not just layout. It would be a `sortable` attribute on the table, just like you already have attributes that have nothing to do with layout such as `autocomplete` or `aria-*`.

Everyone already complains that browsers are too bloated and now you want to have every browser support sortable tables when a single, simple JS file would work?

[deleted]

Re: HTML Can Do That

#199

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…

> The only hard thing is still to position a popover near the element that triggers it, such as when you want to create a context menu that has to render above/below the button that triggered it. There is anchor positioning in CSS now but support is still limited and I find it hard to wrap my head around. I was going to suggest anchor positioning. I found it difficult to wrap my head around too, but once it clicks it…

Baseline newly available. For Germany that means 80% vs the usual 90% (I wonder how the Internet looks for those 10% who use ie, Firefox 20 and Chrome 1 or whatever), which, considering that it doesn't really degrade well, makes it pretty much unusable for serious sites.

Re: HTML Can Do That

#200
LLMs defaulting to old patterns for new standards is the same bootstrap problem as Stack Overflow answers lagging behind spec changes. The training data always looks backward.
Post reply on HN