#microformats 2018-01-13
2018-01-13 UTC
KartikPrabhu, iwaim___ and [keithjgrant] joined the channel
# [keithjgrant] hm, xray is interpreting my h-recipe as a review https://xray.p3k.io/parse?url=https%3A%2F%2Fsidecar.keithjgrant.com%2Fdrinks%2Ffrench-kiss%2F
# [keithjgrant] looks like I have some weird <p> tag formatting inside it. that could be part of it.
tantek joined the channel
# gRegorLove Closed two of those php-mf2 issues. Commented on the third; need some feedback/direction: https://github.com/indieweb/php-mf2/issues/60#issuecomment-357400495
# Loqi [gRegorLove] @aaronpk Let's leave this open for now.
I read https://github.com/indieweb/php-mf2/issues/60#issuecomment-228587873 as "authoring issue, ignore." However, I just tested the original HTML with #131 and it parses a space character for `updated`. I'...
# gRegorLove tantek, Zegnat, sknebel ^
# gRegorLove aaronpk ^^
# gRegorLove Node parser supports YYYYMMDD format, despite spec
# KartikPrabhu I propose a MYYDYMYD format
# gRegorLove mf2py returns empty array
# gRegorLove I propose you shu-- jk, KartikPrabhu ;) :D
# KartikPrabhu :P
# gRegorLove Typo. Meant: you're super
# gRegorLove tantek: aye, that's better phrasing
# gRegorLove Ruby parses "2014-12-04 00:00:00", adding time precision not authored.
# gRegorLove Hehe, and Go gets the string inside the span: "4 December 2014"
# gRegorLove Just a moment
# gRegorLove My main question is: if parser doesn't support YYYYMMDD, should the property be ignored, or parsed as an empty string?
# KartikPrabhu good question
# gRegorLove Agreed it seems like a harmless enhancement to support the format. php-mf2 doesn't currently
# gRegorLove Ruby issue filed: https://github.com/indieweb/microformats-ruby/issues/76
[miklb], tantek, chrisaldrich, gRegorLove, nitot, [kevinmarks] and [mrkrndvs] joined the channel
# gRegorLove If I could get a review and some thumbs up (and no objections) on https://github.com/microformats/microformats2-parsing/issues/17, I'll update the spec
# gRegorLove I'm probably in favor of deprecating value-title parsing, but YYYY isn't a valid format according to VCP date and time parsing.
# gRegorLove Which does seem a bit odd, but I don't know the history of VCP
[miklb] joined the channel
# gRegorLove Haha "Why might someone write some markup like this? Ask a consulting psychologist." in the VCP questions section.
# Zegnat Honestly I was just rewriting vcp for myself so I would know how I would want to implement it, and these 2 issues came up. See https://wiki.zegnat.net/media/mf2dom.html
KartikPrabhu joined the channel
# gRegorLove So close on this backcompat phpmf2 backcompat update, just one test giving me grief.
# gRegorLove .h-entry > .hfeed > .e-content is a pain, heh
# gRegorLove Hard to explain. Method I'm working on is recursive, digging down to each mf root. It parses them for properties correctly based on backcompat or mf2. Upgraded backcompat elements are kept track of.
# gRegorLove .e-content gets ignored in the hfeed correctly, but gets caught by h-entry later, so the content property shows up.
# gRegorLove I need to retrace my steps; this test was passing the other day. I changed something to break it :)
# gRegorLove No worries, I'll find it.
# gRegorLove yay, I think I just did.
# gRegorLove hard is recursion
# gRegorLove Yeah, php-mf2 has always used xpaths. I haven't deviated too much from that
# gRegorLove But now it's more precise: drill down to the most-nested mf, run backcompat to upgrade elements as needed, then use xpaths to extract the p-, e-, dt- etc. and parse them accordingly.
# gRegorLove Before it was more like, find a root mf, if it's an mf1 root run backcompat on anything inside it.
# gRegorLove Probably more than that, though it's not traversing every element. It's using xpaths a lot. If you have an hentry, it runs an xpath for each of hentry's properties to upgrade those elements.
[cleverdevil] and tantek joined the channel
# gRegorLove It could probably be more efficient, for sure. No noticeable slowdown, though. Hoping this should fix 99.9% of weird mf2/mf1 combinations; definitely giving more correct results so far.
[chrisaldrich], [stefp], [miklb], KartikPrabhu and ben_thatmustbeme joined the channel