#microformats 2017-03-06
2017-03-06 UTC
[dgold] and nitot joined the channel
#
gRegorLove Backcompat question for: http://pin13.net/mf2/?id=20170306004752354
#
gRegorLove Per http://microformats.org/wiki/h-adr#Backward_Compatiblity "If an "h-adr" is found, don't look for an "adr" on the same element."
#
gRegorLove I think that means the h-adr should show up as a child, not as a property of the h-card. Looking more like: https://gregorlove.com/php-mf2/test.php
#
gRegorLove Following the backcompat algorithm (in the work I'm doing now) is actually giving much better results than latest php-mf2
#
gRegorLove Yes, that's the things I'm working on.
#
gRegorLove The current approach is "replace all mf1 class names with their mf2 versions" which causes the messes we've run into. Actually following the algorithm, taking into account whether the parent element has an mf2, works much better.
#
gRegorLove Note in my link there that the <div class="locality">MF1</div> didn't get upgraded to p-locality
#
gRegorLove Because it's within an mf2 element
#
gRegorLove So my current understanding of the algorithm seems to contradict http://microformats.org/wiki/microformats2-parsing-issues#uf2_children_on_backcompat_properties, which is why I'm asking with that specific example
#
gRegorLove If that was just a <div class="adr"> then the improved backcompat would make it <div class="adr p-adr h-adr"> and it would parse as a property, not child
nitot joined the channel
#
gRegorLove Agreed. I think http://microformats.org/wiki/microformats2-parsing#algorithmi is more up-to-date
#
gRegorLove "if that child element itself has a microformat ("h-*" or backcompat roots) and is a property element, add it into the array of values for that property..."
#
gRegorLove If there's any hReview examples that php-mf2 is handling badly now, let me know and I'll try them with this. So far using old examples on the wiki
#
gRegorLove Oh yeah :)
#
gRegorLove I used that in earlier tests, but a lot has changed since. Let me try again.
#
gRegorLove summary parses as p-name, according to h-review backcompat. Is that what you mean?
#
gRegorLove Maybe an oversight. I don't see p-summary
#
gRegorLove Other than that is anything wrong?
#
gRegorLove Ah
#
aaronpk wanna try one with mixed mf1 and mf2? https://aaronparecki.com/2016/12/15/11/bose-solo-15-sound-system-review
#
gRegorLove Easy to add. Makes sense to me, though maybe p-summary should be added to the properties for h-review
#
gRegorLove Refresh the id=2 test above; has p-summary now
#
gRegorLove Hm
#
gRegorLove The h-review itself looks good. Some other issues though
#
gRegorLove Ah, <span class="reviewer vcard"> won't be upgraded because it's within an mf2 h-* root
nitot, KevinMarks and [kevinmarks] joined the channel
#
[kevinmarks] How does unmung.com do with these examples?
#
gRegorLove afaict, mf2py backcompat is based on php-mf2
#
gRegorLove I don't know python super well, but it looks very similar
KevinMarks joined the channel
#
[kevinmarks] Hm. I should look at the test cases again, I did spend some time with them a while back.
nitot, KevinMarks_, KevinMarks, tantek, timo, [dgold], nitot_, pfefferle, GK_1wm___SU and [eddie] joined the channel
[kevinmarks], nitot, KevinMarks and [keithjgrant] joined the channel
#
@rbairwell Just realising what a rabbit hole Microformats/microdata is.... Looks like the next few days are going to be "interesting".... (twitter.com/_/status/838801868541345792)
tantek, bwt, gRegorLove and nitot joined the channel
#
@SebastianX I admit that ranting against totally useless microformats like no-follow & Obama's failed foreign policy is a threat to national security. (twitter.com/_/status/838830497665011713)
[eddie] joined the channel
#
gRegorLove Hey tantek, could you take a look at yesterday's convo and let me know your thoughts: https://chat.indieweb.org/microformats/2017-03-06#t1488761293131000
#
gRegorLove tantek: my main question came from this line on h-adr: If an "h-adr" is found, don't look for an "adr" on the same element.
#
gRegorLove Right
#
gRegorLove Just citing it for this specific example.
#
gRegorLove It seems to conflict with the microformats2-parsing-issues example I linked, where <div class="adr h-adr"> is upgraded to <div class="adr p-adr h-adr">. The node parser does that, making the adr the property of the h-card, not a child
#
gRegorLove Ahh
#
gRegorLove Thanks, Loqi!
#
gRegorLove Is it correct to say then: If you're inside a mf1 root class, 'adr' should be considered a property for backcompat and upgraded to 'adr p-adr'?
#
gRegorLove I think that's correct based on http://microformats.org/wiki/microformats2-parsing##if+that+child+element+itself+has+a+microformat
KartikPrabhu joined the channel
#
gRegorLove I'm not sure I follow
#
gRegorLove I thought adr / h-adr could be used to mark up addresses, doesn't have to be inside an hCard / h-card
#
gRegorLove Oh, I think I get it. I misspoke. Yes, 'adr' is only treated as a property inside hCard by the backcompat code -- not inside just *any* mf1 root.
tantek joined the channel
#
@snowcloneminute In microformats, no one can hear you dissert (twitter.com/_/status/838876924663500800)
[terminalpixel], [eddie] and [dgold] joined the channel
