#microformats 2018-03-09

2018-03-09 UTC
JohnBeales joined the channel
#
GWG
aaronpk: I wasn't taking advantage of it. Many WordPress themes use rel="bookmark". But I may have to fix it.
#
aaronpk
use for what?
#
aaronpk
I can't think of a case where it makes sense to have rel=bookmark to a permalink on your own site
#
GWG
aaronpk: I meant, I forked a stock WordPress theme and never fixed it
#
GWG
I made a lot of fixes, but I always find more.
#
GWG
aaronpk: Is pin13.net using the latest version of php-mf2?
#
GWG
I want to see what else I probably should fix
#
GWG
aaronpk: Anything else you noticed?
#
GWG
I'm working on fixing it before I push it live.
#
aaronpk
not yet
#
GWG
Maybe I need a MF2 consultant.
[eddie] joined the channel
#
GWG
aaronpk: Fixed and pushed.
#
GWG
I can't vouch for anyone who used that code as the basis for something though
#
aaronpk
great! hopefully these show up better now
#
GWG
aaronpk: Nice to know I'm part of someone's feed
tantek joined the channel
#
tantek
edited /h-card (-242) "no h-card found on page, assuming spam. Undo revision 66699 by [[Special:Contributions/JohnMichael2018|JohnMichael2018]] ([[User talk:JohnMichael2018|Talk]])"
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:JohnMichael2018]] with an expiry time of infinite (account creation disabled): Spamming links to external sites: not reading instructions on hcard-examples-in-wild"
(view diff)
#
tantek
edited /Special:Log/block () "blocked [[User:Sellanyhome]] with an expiry time of infinite (account creation disabled): Spamming links to external sites"
(view diff)
#
tantek
edited /hcard-examples-in-wild (+195) "make it clear you'll get banned, go add h-card, del prev add instructions"
(view diff)
ben_thatmustbeme, JohnBeales, tantek, barpthewire, nitot, [manton], [kevinmarks] and nitot_ joined the channel
#
[kevinmarks]
The rel=bookmark is the standard for the permalink of the post. It is defined to have a non page scope by html5 based on existing usage.
#
[kevinmarks]
If you use <article> for your posts
adactio, JohnBeales, Garbee and [kevinmarks] joined the channel
#
KartikPrabhu
so rel-bookmark is now like u-uid?
#
Loqi
[Tantek Çelik] h-entry is a simple, open format for episodic or datestamped content on the web. h-entry is often used with content intended to be syndicated, e.g. blog posts. h-entry is one of several open microformat standards suitable for embedding data in HTML. ...
#
Zegnat
In back compat parsing that is.
#
aaronpk
oh, never knew that
KartikPrabhu, [manton], barpthewire, [cleverdevil], nitot, [kevinmarks], chrisaldrich and [jeremycherfas] joined the channel
#
KartikPrabhu
is almost done updating mf2py to do better backcompat!
#
sknebel
KartikPrabhu++
#
Loqi
kartikprabhu has 13 karma in this channel (176 overall)
#
KartikPrabhu
now writing tests
#
KartikPrabhu
some older tests are wrong as no implied properties for mf1 parsing
[chrisaldrich], [tantek] and bigbluehat joined the channel
#
aaronpk
I kind of wish the parser would tell me whether something was a backcompat parsed result or real mf2
#
KartikPrabhu
aaronpk: use-case?
#
KartikPrabhu
btw https://github.com/kartikprabhu/mf2py has better backcompat parsing now!
#
Loqi
[kartikprabhu] mf2py: mf2 parser in python (this is an experimental fork)
#
aaronpk
I got a webmention from a wordpress permalink that has hfeed with a single hentry
#
aaronpk
xray couldn't find anything there because it looks like a feed, and the hentry had no url property so it didn't think it was a post permalink
#
aaronpk
if I knew that was a backcompat result, I could say "if there is a backcompat hfeed with a single hentry, treat it as an h-entry"
#
KartikPrabhu
is this an issue on microformats?
#
aaronpk
it's an issue of bad mf1 markup on wordpress
#
aaronpk
it's a microformats2 parser issue because without the knowledge that the thing i'm looking at was a backcompat format, I can't write that logic
#
KartikPrabhu
yeah I see
#
aaronpk
because there is a legitimate case for an h-feed to contain just one h-entry without the page being a permalink
#
KartikPrabhu
this one is tricky
#
KartikPrabhu
aaronpk: maybe some property of a root class to indicate it was backcompat processed?
#
aaronpk
maybe? or "type": ["h-entry","hentry"]
#
KartikPrabhu
the parsing algo http://microformats.org/wiki/microformats2-parsing#parse_an_element_for_class_microformats does say "keep track of whether the root class name(s) was from backcompat "
#
Loqi
[Tantek Çelik] microformats2 parsing specification
#
@kartik_prabhu
Took a solid 10 hours but better backcompat parsing rules in mf2py now https://github.com/kartikprabhu/mf2py #python #microformats #indieweb
(twitter.com/_/status/972251357443952640)