#microformats 2018-04-21

2018-04-21 UTC
[unoabraham], [chrisaldrich] and webchat254 joined the channel
#
webchat254
hi
tantek, webchat296 and barpthewire joined the channel; webchat254 left the channel
#
sewarental
edited /get-started () "(-2604)"
(view diff)
webchat296, tantek and prlbr joined the channel
#
prlbr
hey, how can I get rel="up" to be promoted to a valid rel-value again?
#
prlbr
it has been dropped from the HTML spec *without prejudice* (http://microformats.org/wiki/existing-rel-values#dropped_without_prejudice)
#
prlbr
i think that it provides a useful information, namely that the linked resource is one level higher in a hierarchy of documents
#
prlbr
for example, i use it in my photo gallery: https://prlbr.de/galerie/14/linie-1/
#
prlbr
so maybe that would be a reason not to use "up" anymore and use "parent" instead?
#
prlbr
but in http://microformats.org/wiki/existing-rel-values#formats "parent" can actually refer to the family relation, i.e. to a human mother or a human father
#
prlbr
so "parent" isn’t an adequate substitute in my opinion
[kevinmarks] and prlbr_ joined the channel
#
@coldacid_ebooks
My legs are made to move away from #microformats.
(twitter.com/_/status/987631591882199040)
[stefp] joined the channel
#
Zegnat
prlbr, if people are using it and there is no proper alternative: document the usecase
#
prlbr
there is already a stub at http://microformats.org/wiki/rel-up
#
prlbr
should I create an account for the wiki and edit the wiki with more use cases/implementations?
#
prlbr
or should I make a proposal somewhere else, i.e. on my website first, which includes use cases and come back here with a link once I’ve finished?
[unoabraham] and [kevinmarks] joined the channel
#
[kevinmarks]
Document usage on the wiki is the best idea. See http://microformats.org/wiki/process for lots of advice
#
Loqi
The microformats process
#
prlbr
okay, thank you both, I'll do that within the coming days
#
prlbr
oh
#
prlbr
to create an account in the wiki I’d need to pass a reCAPTCHA test that doesn’t work anymore
#
Loqi
microformats community
#
prlbr
it says "Direct site owners to g.co/recaptcha/upgrade"
#
sknebel
I think you can still pass that by typing "reCAPTCHA v1 IS SHUTDOWN"
#
prlbr
oh, yes. that worked. gracias!
#
Zegnat
You can also just write "a". Probably anything that isn't an empty string.
[stefp], [kevinmarks] and [unoabraham] joined the channel
#
[unoabraham]
Looking for pointers on how to get started.
#
[unoabraham]
The basic idea is to add to a child theme (or create a new one).
#
[kevinmarks]
A child theme for what?
#
Zegnat
Wrong channel? Missing context?
#
[unoabraham]
I meant adding Microformats to WordPress theme.
#
[kevinmarks]
The WordPress channel may be a better place to get answers there
[snarfed], barpthewire and KartikPrabhu joined the channel
#
KartikPrabhu
gRegorLove: how is php-mf2 doing the rel-tag parsing? see example here: https://github.com/microformats/mf2py/issues/101#issuecomment-383311833
#
Loqi
[kartikprabhu] Minimal example for the `content.html` issue above. ```html <article class="hentry"> <section class="entry-content"> <p class="entry-summary">This is a summary</p> <p>This is <a href="/tags/mytag" rel="tag">mytag</a> insid...
#
KartikPrabhu
mf2py substitutes the rel-tag with a <data> element but then the data element shows up in the content.html
#
KartikPrabhu
in php-mf2 the entry-summary to p-summary conversion shows up in the content.html
[kevinmarks] joined the channel
#
gRegorLove
It adds a <data> element
#
gRegorLove
Other mf1 backcompat it adds the mf2 classes, then parses it as mf2, so yeah the p-summary appears there.
#
KartikPrabhu
why is the <data> not appearing then?
#
gRegorLove
Not ideal, of course, but that's the method it's used since before I worked on it
#
gRegorLove
It's appended outside that element
webchat108 joined the channel
#
KartikPrabhu
gRegorLove: oh! you mean inside the hentry but outside the content?
#
KartikPrabhu
aah! nice, this case seems to be anticipated!
#
gRegorLove
With this exception, but it's an odd edge case that we haven't seen live: https://chat.indieweb.org/microformats/2018-03-25#t1522006221946300
#
Loqi
[gRegorLove] Yeah, it works, but still fails if there's an hentry.entry-content nested in an hentry.entry-content.
[miklb] joined the channel
#
Zegnat
Hmm, does anyone here have admin access to the wiki? I would *love* the ability to create a new page, so I can start a description of the mf2 JSON format as discussed earlier today.
#
Zegnat
aaronpk, maybe?
#
aaronpk
Not me
#
Zegnat
... do you maybe have the right to start a page, like http://microformats.org/wiki/microformats2-json, that I can then go and write? Haha
#
Zegnat
Because apparently, I do not have those permissions :/
#
aaronpk
created /microformats2-json (+8) "create stub page for zegnat"
(view diff)
#
aaronpk
Apparently i do
#
Zegnat
Awesome, looks like I can edit that! Thanks! Grabbing something to drink and then I’ll start putting some thoughts down.
#
gRegorLove
There's some threshold of edits before you can create pages on the wiki. I had to wait a while before I could create my user page :)
nitot joined the channel
#
zegnat
edited /microformats2-json (+1973) "First draft of page structure."
(view diff)
[snarfed], nitot, [kevinmarks], [miklb] and webchat108 joined the channel
#
jmac
I'm updating my blog to use h-feed/entry. If I don't wanna display my name to human readers in every post, is it kosher to include a p-author div in every h-entry and set its style to "display:none", or is that a bit dirty?
#
jmac
(or otherwise missing the point)
#
sknebel
many people do that in some way. assuming you have a h-card on your homepage, you should link to that with u-author
#
Zegnat
And for hidden data, rather than CSS-hidden elements, we usually recommend using the <data>-element
#
jmac
Zegnat: That's good, I don't use HTML5ey elements enough to have mentally cache them yet!
#
jmac
<data> it shall be
#
jmac
Actually, lemme back up a little here. *Is* <data> an HTML5 element? It doesn't seem to be on e.g. https://www.w3schools.com/HTML/html5_new_elements.asp .
webchat108_ joined the channel
#
KartikPrabhu
jmac: w3schools is not a good reference
#
jmac
I just read what the googles give me, man
#
KartikPrabhu
jmac: yeah I am not criticising you :)
#
jmac
All good. :)
#
KartikPrabhu
MDN is a pretty good resource so I would recommend that
[kevinmarks] joined the channel
#
jmac
I'm a little confused though... the example of that page seems to imply that a web browser will display the content of a <data> element, whereas I want to not display things.
#
jmac
I guess I'd like to see an example of <data> used to store e.g. p-author or p-summary information the way that Zegnat was implying earlier
tantek joined the channel
#
KartikPrabhu
jmac: <data class="p-author" value="author name"></data>
#
KartikPrabhu
i.e. use an empty <data> element with the value set to the author name
#
jmac
zounds
#
gRegorLove
Zegnat: https://github.com/indieweb/php-mf2/pull/170 lgtm, though in the new test it's probably better to use h-entry instead of h-test
#
Loqi
[Zegnat] #170 Move resolve step last in u-* parsing
#
gRegorLove
We've used h-acme- in other tests if it needs to be something made up, to make it obvious in case anyone tries to copy/paste
#
aaronpk
Tho now someone might think that has to do with letsencrypt
#
aaronpk
I don't understand their reason for using the acronym ACME not as a joke
[asuh], KartikPrabhu, tantek, [tantek] and [snarfed] joined the channel