#dev 2025-05-31

2025-05-31 UTC
grufwub and [KevinMarks] joined the channel
#
[KevinMarks]
That sounds like a corollary to Norton's Law: In the long run, every piece of data or information is either public or deleted. It won't stay secret.
Betshy, alephalpha0 and NaomiAmethyst joined the channel
#
[snarfed]
yes! good call, related
#
zachary.kai
I have a question, if that's alright. I've just added autocomplete attributes to the forms on my website, and I've realized it'd be great if there were values for your personal website and pronouns! Can I suggest that to anyone? If at all?
[Rohit_Khare], doesnm, GuestZero, Jako_F_Trades, barnaby, ttybitnik, geoffo, oodani, [Jo], NaomiAmethyst and jonnybarnes joined the channel
#
[social]
Zachary.kai You could suggest personal pronouns, but I’d let people type their own.
#
[social]
As far as personal websites an autocomplete for the start would be helpful, but I unless you’ve pulled in background data / metadata (which many may find a bit “creepy”) I don’t know you could go farther than that to help.
duanin2, Jako_F_Trades, GuestZero_ and balintm joined the channel
#
zachary.kai
[social] That's a very good point. I appreciate you answering, thank you!
gRegor joined the channel
#
gRegor
There's a "url" value for that so your browser can autocomplete it
#
capjamesg
zachary_kai[d] You may be interested in https://github.com/alphagov/accessible-autocomplete too.
#
Loqi
[preview] [alphagov] accessible-autocomplete: An autocomplete component, built to be accessible.
#
capjamesg
[edit] zachary_kai[d] You may be interested in https://github.com/alphagov/accessible-autocomplete too.
#
capjamesg
I use that component whenever I want to do autocomplete.
#
capjamesg
I use the "plain JavaScript module" since I don't want to deal with npm, etc.
#
gRegor
I don't know the inner workings, but I suspect the list of valid tokens is in the browser, so autocomplete="pronouns" might not work until browsers update, but could be a worthwhile suggestion
#
gRegor
capjamesg, have you experimented with https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/datalist ? I've only used it once but it's pretty cool.
#
gRegor
I built it into a form at work that works as a combo select-from-options + search if you enter text that's not in one of the options
bterry joined the channel
#
doesnm
how autocomplete is working? Can't test because [X] Firefox for Android
#
[artlung]
`sex` is the closest to what you’re asking, but is really meant as a freeform expression of gender identity. This was an improvement on the old drop-down menu or 2 radio buttons with male or female, and no option for “other.”
#
[artlung]
`pronouns` I suspect may be a suggestion to WHATWG already
balintm joined the channel
#
[artlung]
Come to think of it, there was a tremendous blog post maybe 20 years ago decrying that binary UI gender choice, I think it woke up a lot of developers at the time.
#
[artlung]
Actually, there were several posts from the past along those lines.
#
[artlung]
But back to your question zachary_kai I think a `<input autocomplete=pronouns>` is a solid idea
#
gRegor
doesnm, When you're filling out a form for the first time, depending on settings/past interactions, the browser will ask if you want to remember the values. So if you enter your name and say yes to that, next form you come across with autocomplete="given-name", the browser will give you the option to fill in from what's saved in the browser.
#
gRegor
The MDN link above has a list of the tokens. Most commonly used for names, addresses, and billing information
#
doesnm
i think it worked without this attribute lol
#
gRegor
Probably, but tihs method is more precise
#
gRegor
I imagine browsers are doing some magic if the field name is like "first_name" it's pretty obvious it's autocomplete=given-name.
#
gRegor
The autocomplete lets you use any naming convention for fields though
#
gRegor
I'm speculating though, don't know specifics of the browser inner workings :)
#
[artlung]
and for personal website, zachary_kai, the spec says `<input autocomplete=url>` is that.
#
[artlung]
> _Home page or other web page corresponding to the company, person, address, or contact information in the other fields associated with this field_
#
gRegor
Just remembered https://indiebookclub.biz/ has autocomplete=url, so feel free to try it out there.
#
[artlung]
[gRegorLove]++ for that
#
Loqi
[gRegorLove] has 3 karma in this channel over the last year (25 in all channels)
#
gRegor
I wonder if I denied saving it in my browser, because I don't think I've been prompted to remember the URL there. Hm. Will have to dig into my settings.
#
gRegor
Ah, yeah, I have the setting off in my browsers
#
[artlung]
MacOS Safari is meant to use the operating system contact card as a source for autocomplete. I had "home page" as a field on my contact card. I also added "URL" just now, but it does not pick it up. Feels like not implemented.
#
gRegor
Time to experiment
#
gRegor
Yeah the chrome and firefox docs so far seem heavily towards addresses and payment info
#
gRegor
In Firefox I went to Saved Addresses to try to add one. Includes an email field but not a URL field.
#
gRegor
Maybe this is in browser extension land
#
[artlung]
the language of the spec also seems to create a correlation between url and *other* contact information. So in a form with multiple fields, for name and such, AND a url, possibly the mechanism for url triggers when there are other contextual clues.
#
[artlung]
> _corresponding to the company, person, address, or contact information in the other fields associated with this field_
#
[artlung]
anyway, gotta hit the beach now before impromptu indieweb get together
#
gRegor
enjoy, see you later
Jako_F_Trades, doesnm, sivoais and geoffo joined the channel
#
[social]
Safari picks up its autofill information from an odd place. It used to be a card for yourself in contacts that you selected. But, It seems to have changed in recent versions and I haven’t sorted out where to update that information.
#
[tantek]
What is autofill
#
Loqi
It looks like we don't have a page for "autofill" yet. Would you like to create it? (Or just say "autofill is ____", a sentence describing the term)
#
[tantek]
^ worth documenting at least how to use autofill both as a developer to prompt for the user's (indieweb) URL, and as an indieweb user where to enter/edit your personal site so it's automatically used for autofill and web sign-in!
#
gRegor
what is autocomplete
#
Loqi
autocomplete is when a text field provides options based on the existing text entered, sometimes providing default options when no text is entered, this is particularly relevant in the context of Micropub apps https://indieweb.org/autocomplete
Jako_F_Trades and balintm joined the channel
#
[tantek]
Yeah they are different
#
gRegor
I know, just checking if we had it
Jako_F_Trades joined the channel
#
[social]
Oddly, I continually get other email addresses that aren’t on that card and one is for a company that no longer exists.
#
[social]
I found Safari “supposedly” uses the selected contact card you select in Safari’s Settings > Autofill.
balintm, Jako_F_Trades, rrix, barnaby and barnabywalters joined the channel
#
perryflynn
I created a PHP file upload function to handle all the safety things. Did I missed something? https://gist.github.com/perryflynn/6fc08c278df6fe0aa83ef275392edca5
Jako_F_Trades, bterry1 and [aciccarello] joined the channel
#
[schmarty]
what is autocompl
#
Loqi
It looks like we don't have a page for "autocompl" yet. Would you like to create it? (Or just say "autocompl is ____", a sentence describing the term)
Jako_F_Trades, doesnm and jeremy joined the channel
#
[tantek]
lulz [schmarty]++
#
Loqi
[schmarty] has 13 karma in this channel over the last year (42 in all channels)
#
gRegor
hahah