News for hackers. Stuff that matters.
Re:Imagining CSS for URLs and HTTP Headers by justinator on Monday November 28, 2022 @01:26PM (#33777432)
I'm kind of missing the part that explains why you'd need this?

I don't think it completely solves it, but it would be useful to be able to apply styling to a specific part of the page ie: highlight something so when you send it, it saves the receiver a little time searching for it.

Or in a similar vein, wouldn't it be cool to make any header an anchor? So I could say,

http://example.com/article.html#second_header

or whatever. Not the same concept, but it would be useful.

Re:Imagining CSS for URLs and HTTP Headers by slondr on Monday November 28, 2022 @06:46PM (#33781593)
There's really nothing stopping a UA from doing this, and in bygone eras "document trees" used to be part of browser UIs.

Gemini clients still keep that dream alive, although there's plenty of disagreement as to exactly how it should function: https://gitlab.com/gemini-specification/gemini-text/-/issues...

Re:Imagining CSS for URLs and HTTP Headers by hayyyyydos on Tuesday November 29, 2022 @06:47AM (#33786361)
> Or in a similar vein, wouldn't it be cool to make any header an anchor? So I could say,

You already can make any header an anchor, right?

eg: <h2 id="second_header">Second Header</h2>