#microformats 2021-05-14

2021-05-14 UTC
[KevinMarks], [tw2113_Slack_], sparseMatrix, gRegorLove, [fluffy], gRegorLove_, [manton], [schmarty], hendursa1, hendursaga, jamietanna[m], jeremycherfas, [dianoetic_net], reidab, tomlarkworthy and [chee] joined the channel
#
@kalanKDavis
↩️ It has been a lifetime since i've cataloged microformats and govdocs, but i learned during an all-staff meeting yesterday that the words "CIS microfiche" still send agues of fear and despair through my body.
(twitter.com/_/status/1393181371116392451)
hendursaga, TallTed, [aciccarello], gRegorLove, gRegorLove_, [KevinMarks], wes, [schmarty], [girrodocus], [snarfed] and [dianoetic_net] joined the channel
#
[dianoetic_net]
...what does the `h-*` stand for?
#
GWG
Does that help?
#
[KevinMarks]
It kind of stood for html originally in mf1, as we were mapping other formats into html, so vcard to hcard, icalendar to hcalendar Atom to hAtom
#
[KevinMarks]
So with mf2 it became h- when we made prefixes with a hyphen
[chrisaldrich] joined the channel
#
[dianoetic_net]
HTML makes sense! I don’t think it's written down anywhere
#
GWG
[dianoetic_net]: I didn't realize you meant literally...I thought you wanted more details on the description.
sparseMatrix joined the channel
#
@Rommudoh
So, once again, I have redone my homepage. This time using Cryogen. https://vgai.de/posts/redone-again/ #Cryogen #IndieWeb #Clojure #microformats
(twitter.com/_/status/1393296498193059844)
[fluffy] and KartikPrabhu joined the channel
#
[fluffy]
Question about h-feed/h-entry: is there any provision for a GUID-type identifier for items to prevent duplication if an item’s URL needs to change? That’s the one thing that I feel like RSS and Atom still do better than h-feed, and for me it’s a pretty big one.
#
aaronpk
there is u-uid
#
[fluffy]
Ah, cool.
#
aaronpk
i don't know how well supported that is in practice
#
[fluffy]
Yeah I was about to ask… but I mean, it exists, so when/if I ever get around to writing my own feed reader I’ll definitely want to use that as an item identifier if it’s available.
#
[fluffy]
and I guess that’s a thing I can add to my own h-feed stuff on my site 🙂
#
[fluffy]
The microformats wiki says that uid is ‘core’ at least, so it’s not like it’s a fringe implementation detail, in theory.
#
[fluffy]
(and to be fair a LOT of RSS feeds just use the item URL as the <guid>, completely defeating the point to having a declared uid…)
KartikPrabhu joined the channel
#
[fluffy]
oh, actually, since it’s a u-type, how is it intended to be associated to the entry? href doesn’t make sense for this.
#
[fluffy]
(Have I just stumbled upon why nobody does it?)
#
aaronpk
well the property name isn't tied 1:1 to prefixes
#
aaronpk
but the most common usage in the wild is using it for the canonical URL, so you'd use u- for that
#
aaronpk
but you could do p-uid just as well as long as consumers aren't expecting it to actually be a url
#
aaronpk
remember the parsed result doesn't have the prefix so all that shows up in the JSON version of the page is "uid"
#
[fluffy]
yeah, but then it becomes visible without hiding it in CSS, which means that non-CSSish agents start to render it, which isn’t ideal. But http://microformats.org/wiki/microformats2-parsing#parsing_a_u-_property has other options that I’m trying to wrap my head around.
#
aaronpk
whether it's visible also has nothing to do with the prefix or property name
#
[fluffy]
so I guess `<data class="u-uid" value="askjdflsajflasjlas">` would work?
#
aaronpk
data p-uid
#
aaronpk
i don't think u- is defined for data elements
#
[fluffy]
right but I mean if it’s p-whatever that implies it’d be like `<span class="p-uid">alskdjflajla</span>` right?
#
aaronpk
the prefix is literally just an instruction to the parser of where to get the value from
#
[fluffy]
yeah, I get that, and I thought p- meant “get it from the plain text”
#
sknebel
your data class thing, but with p-uid
#
aaronpk
p => plain text, where plain text is dependent on the HTML tag
#
[fluffy]
okay, yeah, I see that p- works on data value= too
#
sknebel
(u-uid will get resolved as a URL, you don't want that)
#
[fluffy]
okay so that’s the disconnect. thanks.
#
[fluffy]
Okay yeah pin13.net at least accepts <data class=“p-uid” value=“asdkjflaskjflasd”>, thanks everyone
#
[fluffy]
yeah I was just testing that on my actual site templates 🙂
hober joined the channel