#dev 2025-03-03

2025-03-03 UTC
Lars-Christian, [0x3b0b], bloot, _fluffy, claudinec, mooff, doesnm, jeremycherfas, trwnh, capjamesg[d], Saphire, hidjy[d], Salt, stefen, aaronpk, RapidRotator, lockywolf, lanodan, noderanger[d], neatnik, Daijo, IWDiscord, Pixi, jjuran, oodani, dustinm`, jonnybarnes, luca, rrix, rossabaker, vriska, grufwub, Toxicogenic, bterry, immibis, ttybitnik, geoffo, sisoma_new[d], sebbu, sknebel, Kaja, bret, JadedBlueEyes, Xe, [KevinMarks], [jeremycherfas], balintm, barnaby, [tw2113], GWG, sandra, parnikkapore_x, [tantek], alephalpha0, voxpelli, chenghiz_, dissolve22[d], ben, karjala, xgpt, nnrx, athenaeryma, okCiel, oxtyped, saptaks, sivoais, ludovicchabant, benji, thegr8whoopdini[, rhiaro, eatyourglory, Virtual, IWSlackGateway, 080AA21X6, vikanezrimaya, suki, srushe, laker, hedy, rob32, omz13, oenone, SylvatiCodes, GuestZero, nsh, Elleo, Soni, joshproehl, hedy_, _123nick[d], yewscion__, ramsey, DJ_[dj_je][d], _pi_r2_0[d], paotsaq, Maxpm, bugliker, Zegnat, Dryusdan_, moose333, Tiffany, kushal, MyNetAz, ancarda, thegreekgeek, eb, capjamesg, gregsarjeant, srijan, sebsel, roxwize, GuestZero_, [morganm] and NaomiAmethyst joined the channel
#
doesnm
thinking about using conneg to display microformats while website itself is text/plain. Does it possible just some strings in .htaccess?
bugliker, strugee_, GWG, [Murray], ttybitnik and CRISPR joined the channel
#
[KevinMarks]
that's annoying - chrome finally turned off the old manifest format
#
doesnm
what is Fragmentions and Verify Me?
#
Loqi
It looks like we don't have a page for "Fragmentions and Verify Me" yet. Would you like to create it? (Or just say "Fragmentions and Verify Me is ____", a sentence describing the term)
#
doesnm
no, i don't
geoffo joined the channel
#
capjamesg[d]
What is fragmention?
#
Loqi
A fragmention is an extension to URL syntax that links and cites a phrase within a document by using a URL fragment consisting of the phrase itself, including whitespace https://indieweb.org/fragmention
#
capjamesg[d]
What is verify me?
#
Loqi
verify-me is a browser extension that checks if rel-me links on the current page link back, and shows badges if they do https://indieweb.org/verify-me
ttybitni`, ttybitnik, [schmarty], nemonical, [artlung] and [aciccarello] joined the channel
#
[aciccarello]
[KevinMarks] , I can hook you up with a beta version of Omnibear using manifest v3
#
[KevinMarks]
What does the new manifest make harder ? I know part of the motivation was limiting ad blockers. Both fragmention and verify-me do dom parsing and updating, and verify-me needs to fetch arbitrary urls too
#
[aciccarello]
For chrome, the background logic needed to move to a service worker
#
[aciccarello]
WXT was helpful for creating different versions for different browsers https://wxt.dev/
bterry1 and btrem joined the channel
#
btrem
doesnm what do you mean by "display microformats"? Do you mean display them as json?
#
btrem
(A pedant says: the mime type for html -- the most common language on the web -- is text/html, not text/plain.) So do you want to display either a web page (text/html) or json for any given url?
#
btrem
Note that conneg by content type is very frowned upon here. I don't know how to check its karma score, but it's always negative double digits. I could downgrade it again, and then Loqi would give us the updated tally, but I don't hate it as much as others here.
#
btrem
I will point out that conneg by content type was fundamentally broken in the olden days of MSIE 5. Intentionally, AFAICT, by MS. So there's that. MSIE is not longer relevant, but there are other problems, in particular with caching, that will create real hurdles for you.
#
[tantek]
I don't think we did anything "special" with conneg in IE5/Mac for example. We did support it well enough to let webdevs use PNG 1.0 with alpha as an upgrade (higher quality) from GIFa without proper alpha.
#
[tantek]
still, even with that benefit, overall it has caused more trouble than problems it has solved. conneg--
#
Loqi
conneg has -28 karma in this channel over the last year (-31 in all channels)
#
capjamesg[d]
I have been running into trouble with AP conneg 😭
#
capjamesg[d]
If I didn't know what conneg was I'd be so confused right now.
#
btrem
[tantek]: ah sorry, should have specified. I was referring to MSIE 5/Win. The Mac code base was completely different. (Which you obviously know, but others may not.)
#
btrem
Also, I don't think I realized that you worked on the legendary MSIE/Mac browser!
#
btrem
If that doesn't deserve a karma point, I don't know what does. [tantek]++
#
Loqi
[tantek] has 33 karma in this channel over the last year (153 in all channels)
#
doesnm
btrem: html, not json. I mean display html h-card for parsers but plain text for browsers
#
btrem
doesnm: you want to show your pages as plain text instead of html?
#
btrem
So no html markup? No headers, paragraphs, lists, etc.?
#
doesnm
btrem: i'm doing it now. See doesnm.cc
#
btrem
Hmm, well that's a choice. If you don't mind my asking, why don't you want to use html for humans using browsers?
#
doesnm
hm, you don't should styling this and it can be viewed even from curl and text browsers?
#
btrem
Styles are a separate matter from markup.
#
btrem
And what do you mean by a text browser? I don't know of any browsers that prefer text/plain over text/html, which will present a real hurdle to do conneg the way you want.
#
btrem
As for curl, yeah, I suppose plain text would be easier to read in terminal output compared to text enclosed in html tags. But how many people read the web by issuing curl commands in a terminal, except to test something out?
#
doesnm
can't access site via lynx...
#
btrem
(ahem) Lynx is a web browser, fully capable of processing html, thank you very much. :-)
#
btrem
Serve text/plain to Lynx, then serve the same content as text/html, and see the difference.
#
btrem
The most obvious difference is that using Lynx, I can follow links (<a href="foo">foo</a>) by navigating to the link and selecting it. And links are pretty fundamental to the web. With plain text and curl, I'd have to issue a new curl command, and copy-and-paste any links I found.
#
btrem
Man, I'm really showing my age today. Talking about MSIE 5, and Lynx, and whatnot. <grandpa_simpson_voice>I'm oooold.</grandpa_simpson_voice>
#
doesnm
don't want to htmlify site
#
[Murray]
Though you are wrapping everything in a `<pre>` element? Obviously, it's your site and you should make it how you want it to be, but I'll add that this makes it fundamentally pretty inaccessible. So you _might_ be aiding CURL, but you're cutting off anyone using non-visual browsing methods 😅
#
[tantek]
I wonder what folks would think of browsers auto-linking text/plain content
#
[Murray]
As in, finding parts that look like URLs and assigning `<a>` elements?
#
[tantek]
Hyperlinking them from a UI perspective. The plumbing is not the important part
#
[tantek]
Like when you paste a URL into Slack for example, it gets hyperlinked automatically
#
[Murray]
sure, I was trying to understand what you had in mind from a UI perspective 🙂
#
[tantek]
Eg I can type example dot com like: http://example.com and Slack turns that into a hyperlink. I have no idea (don't care) of the plumbing it used to do so
#
[Murray]
I feel like that's fine in an editor context, but Twitter has been a very good example of why you shouldn't do it automatically 😄 Who was the politician that kept missing spaces after periods, and people would buy up the resultant domains and forward them to NSFL content or opposing political views etc?
#
btrem
[tantek]: Not so sure I like that idea. That's taking a page advertised as text/plain and deciding it's something else. Slack is not, AFAIK, capable of html, so adding autolinking might make sense there. (Don't use Slack, so I don't know.) But a web browser is. If someone wants autolinking, then use what already works, text/html.
#
[Murray]
I also (personally) have a long-standing battle with this in a tool I use daily, WorkFlowy, where it would regularly hyperlink things that I don't want hyperlinked. I'm literally looking at a note right know on http://webmentio.io, and it's been hyperlinked automatically, which I cannot override and do not want
#
btrem
Pave the cowpath, don't try to create new paths! :-p
#
[tantek]
at this point nearly all chat/txting UIs are doing this so that seems like a cowpath
#
[tantek]
or at least footpath. thumbpath?
#
[Murray]
most have a way to undo the autolink though, and it still preserves editorial intent and context; a human makes the final decision
#
[tantek]
also email clients do it too for text/plain emails so that's another prior art
#
[Murray]
what you're proposing removes consent from the equation, and relies on a machine to be able to do it accurately to prevent abuse vectors, which I do not think is (currently) possible
#
btrem
yes, there is prior art. But authors /already/ have a way to make links in web browsers.
#
btrem
BTW, lol at thumbpath. :-D
#
btrem
I assume you would only want autolinking on text/plain. Or do you imagine it being implemented in other content types?
#
[tantek]
I'd say start with auto-linking text/plain and get experience/feedback on that before considering other content types
#
[tantek]
That seems like it would be the least surprising to users
#
[tantek]
Note that View Source already auto-links URLs
#
[tantek]
just tried/verified in Firefox, Safari, Chrome
#
[tantek]
so that's another form of plain-ish text that the browser is already auto-linking
Toxicogenic joined the channel
#
btrem
[tantek]: I cannot confirm that View Source turns plain text into links. Does /not/ work in Firefox, nor Chromium, on Ubuntu. Or did you mean it allows users to follow links in href attributes?
gRegor joined the channel
#
gRegor
FYI, the Fragmentions extension in Chrome got turned off automatically for me. Chrome says "Off • This extension hasn't published privacy practices, such as how it collects and uses data
#
gRegor
what is fragmentions
#
Loqi
A fragmention is an extension to URL syntax that links and cites a phrase within a document by using a URL fragment consisting of the phrase itself, including whitespace https://indieweb.org/fragmentions
#
gRegor
Was that [KevinMarks] extension? Looks like the catalog page for the extension is not available too
ttybitnik joined the channel
#
Loqi
[preview] [[KevinMarks]] that's annoying - chrome finally turned off the old manifest format
#
btrem
If you'll excuse the pun, autolinking plain text in a browser smells like content-sniffing. Yes, it's different, but the principle is similar: the browser second-guessing the author. Content-sniffing--
#
Loqi
Content-sniffing has -1 karma over the last year
#
btrem
Hah! first (negative) karma for content sniffing in the last year. :->
#
btrem
It's worth pointing out that this is all rather academic, given how little web content is served as text/plain.
#
[Murray]
if we're talking about autolinking an href attribute, that also makes sense to me, as authorial intent is clear and you can be reasonably sure that the link is, in fact, a link.
#
btrem
[Murray]: I suspect that's what [tantek] was referring to. But `href="https://example.com" is not what I'd call plain text. ;-)
#
btrem
Oops, forgot the closing tick. Should have been `href="https://example.com"`.
#
[tantek]
yes I was referring to View Source on HTML web pages
#
btrem
I got that. But I put a plain text link in a page, then viewed source. I did not turn it into a link, any more than it did on the regular view. And as I said, href= does not constitute plain text in my book.
#
btrem
On the contrary, it is very much markup.
#
[Murray]
agreed 🙂
nemonical, GWG, IWSlackGateway1, [tw2113]1, [lazcorp], [Paul_Lieberman] and thegreekgeek joined the channel
#
capjamesg[d]
Are there good URL design practices for two-or-more-word-long URLs? Like /the-usual.
#
capjamesg[d]
I really like URLs that are easy to say. /the-usual means I'd have to say "the dash usual"
#
capjamesg[d]
I suppose I could use /usual in this case, but it doesn't work for everything (like /writing-prompts).
#
Toxicogenic
you could use camel case?
#
Toxicogenic
wait nvm this is for urls
#
capjamesg[d]
I'd have to explain camel case 😭
#
capjamesg[d]
But good observation!
#
capjamesg[d]
Yeah, it's for URLs.
#
Toxicogenic
yeah camel case and dashes are my go tos for separating words in a string where i can't/shouldn't use spaces
#
Toxicogenic
forgot urls aren't case sensitive for a sec
#
capjamesg[d]
URLs can be case sensitive.
#
capjamesg[d]
It depends on how a site is configured though.
#
Toxicogenic
right
#
Toxicogenic
but most sites aren't configured that way right?
#
Toxicogenic
i don't think i've ever encountered that before
#
capjamesg[d]
Apparently my site is...
#
capjamesg[d]
I have never checked this.
#
Toxicogenic
camel case would work then
#
Toxicogenic
but i realized you'd possibly run into the issue of people assuming it's not case sensitive
GWG joined the channel
#
gRegor
what is url design
#
Loqi
URL design is the practice of deliberately designing URLs, in particular, permalinks, typically for a better UX for everyone who creates, reads, and shares content https://indieweb.org/URL_design
#
[lazcorp]
My site isn't case sensitive on URLs for pages (which go through my routing system), but it is case-sensitive for file names of files hosted on there
#
[lazcorp]
• Windows file system treats file and directory names as case-insensitive. FOO.txt and foo.txt will be treated as equivalent files.
#
[lazcorp]
• Linux file system treats file and directory names as case-sensitive. FOO.txt and foo.txt will be treated as distinct files.
#
btrem
capjamesg[d]: I don't think there's any way around the problem. It's also a problem for domain names. So imagine a domain name for a river, say Concord River. It might be concordriver.example.org or concord-river.example.org. Either of those might be read as "concord river dot example dot org.
#
[lazcorp]
Just to complicate things, domain names are always case insensitive, but the URL path that follows them might not be
#
capjamesg[d]
btrem Domain names also have a problem, especially lesser-known TLDs.
#
btrem
Yep, that too.
#
btrem
[lazcorp]: re case (in)sensitive: there's that factor, too!
#
[tantek]
CamelCase-- for URL paths
#
Loqi
CamelCase has -1 karma over the last year
#
[tantek]
in general, distinct capitals letters are a bad idea for any URLs you plan to speak and have someone hear and type in
#
btrem
Yeah, I don't like CamelCase for file names, either.
#
btrem
And I agree, I never use capital letters in urls.
#
[tantek]
only valid use-case I have found for lowercase camelCase in prose is in multiword hashtags because it can increase the chance of them being read out loud more accurately by text to speech or other accessibility tools
#
gRegor
capjamesg[d], can you have a canonical slug and variations redirect to it? Like `/theusual` redirects to `/the-usual`?
#
capjamesg[d]
gRegor I was thinking that.
#
[tantek]
capjamesg[d] re: two-or-more-word-long URLs, assuming you mean in the path, it used to be convention to hyphenate for better readability and search indexing, and now it's kind of a toss-up (personal pref) between - and _ delimiters
#
gRegor
And maybe case-insensitive, if your routing can support that? Then it won't matter if they type `/tHeuSual` :D
#
capjamesg[d]
My conclusion from this is opting for one word where possible 😂
#
[tantek]
unless it's German in which case (so to speak), no hypens or _ 🙂
#
btrem
I avoid _. Because it's awkward to read out loud compared to -.
#
[tantek]
agreed for speakable URLs
#
[lazcorp]
Hmm, I guess that static sites are nearly always going to have case sensitive URLs, as every page is an actual HTML file (as opposed to the request being routed from a front controller through to a method in a specific controller), and 99.9% are going to be hosted on Linux
#
[lazcorp]
Yes, I avoid _ because it's much quicker to say "dash" than "underscore"!
#
[tantek]
exactly. so best to keep them all lowercase
#
[tantek]
there's plenty of internet arguments about these out there, referencing things like kebab-case or snake_case
#
btrem
[lazcorp]: A static site can still have some logic in the server. Like my site is static, but I can configure Apache to normalize case.
#
capjamesg[d]
[lazcorp] It depends on your server configuration.
#
btrem
...even though the server runs Linux, so files are case sensitive, but urls need not be.
#
capjamesg[d]
I am using nginx and it appears to be case sensitive.
#
btrem
But you can probably configure it to not be.
balintm joined the channel
#
[lazcorp]
Yes, I can find some search results for configuring nginx to rewrite all URLs to lowercase
#
btrem
I've never actually done that. I sort of think it's wrong to server the same content at /foo and /FOO. If I never publish a link to /FOO, I don't see the need.
#
btrem
Right, /if/ I was going to normalize case, I'd do a 301 permanent redirect to the canonical link.
#
capjamesg[d]
An alternative to saying example.com/page is to have a search function on your site that lets someone find something with ease.
#
gRegor
what is links
#
Loqi
links is a top level page on many indieweb sites that serves as a link in bio feature https://indieweb.org/links
#
gRegor
Another option, example.com/links
#
btrem
Although I read the page, and the links-in-bio, I'm not sure what they do. It looks like their contact pages? But without the customary form? But not always?
#
btrem
looks confused
#
btrem
I'm having a face palm moment. (Actually, it was a couple of days ago.) I post Wordle results on my web site, and in the interest of accessibility, I replace unicode tiles with an svg approximation of them.
#
btrem
That way, I can add a `<title>` element to the svg, with text that convey's its meaning, e.g., "letter is in word but in incorrect position"
#
btrem
But it occurred to me, why not just wrap the unicode tile in a `<span>` and add an `aria-label` attribute with the same text? In which case, why did I go through all the trouble of hand-coding svg to look like tiles? Gah!
#
btrem
Reminds me of the time I wrote a function in php to output database results as json. Took me several hours over a couple of days if memory serves. Then a day or two after finishing it, I discovered json_encode. :-/
#
[tantek]
huh, I've also seen /links used to mean linkblog e.g. adactio
#
[tantek]
links << Example: linkblog {{adactio}}: https://adactio.com/links
#
Loqi
ok, I added "Example: linkblog {{adactio}}: https://adactio.com/links" to the "See Also" section of /links https://indieweb.org/wiki/index.php?diff=100270&oldid=99915
#
capjamesg[d]
What is linklog?
#
Loqi
[preview] [Manton Reece] The evolution of linkblogging
#
btrem
Hmm, does anyone use web text to speech software? Maybe just to test things? I'd like to see whether `<svg><title>foo</tltle><!-- tile shape --></svg>` is better than `<span arial-label=foo><!-- tile --></span>`.
#
btrem
Ubuntu has a built in screen reader, but it doesn't read web pages in Firefox.
#
btrem
I suppose I should prefer whatever software is actually used by blind/visually impaired people.
GWG joined the channel
#
[Murray]
I regularly test with screenreaders and other assistive tech, and `<title>` is poorly supported. ARIA is a generally better option, but know that ARIA labels on `<span>` elements is actually invalid, unless you also provide the relevant role (in this case I'm guessing "image")
#
[Murray]
but it does depend what exactly you're trying to do.
#
[Murray]
I'd say, if you're wanting to make something like a Wordle grid accessible, treating the whole grid as a single image and giving it all a descriptive label (best case: visible caption; second best: invisible caption, without removing it from the DOM) would be best
#
[Murray]
something like "Wordle grid with four attempts. The first shows two correct letters in positions 1 and 4; second row has three correct in 1, 2, and 4..." etc. (the fewer words the better; I'm bad at that part 😄 )
NaomiAmethyst7, NaomiAmethyst and btrem joined the channel
#
btrem
[Murray]++
#
Loqi
[Murray] has 3 karma in this channel over the last year (12 in all channels)
CRISPR and sebbu2 joined the channel
#
[Paul_Lieberman]
Hello #indieweb Dev . I've got the Drupal modules installed and I'm trying to setup authentication to use my website. If I try logging in at http://indielogin.com it redirects to my site just fine. I click Authorize and it goes back, but gives an error: "Missing or invalid parameters". Any ideas how to go about troubleshooting this? Thanks.