#microformats 2018-01-14
2018-01-14 UTC
# @workforthem Microformats: What They Are and How To Use Them https://www.smashingmagazine.com/2007/05/microformats-what-they-are-and-how-to-use-them/ (twitter.com/_/status/952329617142112257)
[miklb], tantek, [kevinmarks], [joe]1, [chrisaldrich], [eddie], nitot, barpthewire, [colinwalker], ivc, randomstranger, gayboi, chrisaldrich, nitot_, [jeremycherfas], aaronpk_, aaronpk and chimo joined the channel
# aaronpk is the new implied name parsing rule going to fix this situation? https://david.shanske.com/2018/01/14/1774/
# KartikPrabhu eh! if h-entry gets no name at all then what does "implied name" even mean?
# KartikPrabhu so this will break consumers who use a comparison between name and content-value to figure out if it is a note?
[kevinmarks] joined the channel
# KartikPrabhu so other p-* properties are skipped in name implication or is name implication itself skipped if there are other p-*
# KartikPrabhu that seems to have been undecided
# KartikPrabhu the latter will break note post-type discovery
# KartikPrabhu sknebel: that is what post-type-discovery says afaik
# Zegnat Also, “no "name" property” is a check in Post Type Discovery (https://www.w3.org/TR/post-type-discovery/) so consumers should correctly identify it as a note without needing to compare any name to content
# KartikPrabhu Zegnat: aah nice catch. I had missed that caveat
# KartikPrabhu aaronpk: yes fair enough
# Zegnat I wonder if https://github.com/microformats/microformats2-parsing/issues/6 should extend to “any explicit properties” rather than “any explicit p-* properties”.
# [kevinmarks] also because other note systems did that too (eg twitter feeds when they had them)
# KartikPrabhu Zegnat: so you are proposing that if there is no property found then imply the name?
# KartikPrabhu is there a use-case where such an implied name is useful?
# KartikPrabhu hmmm yeah
# Zegnat Cool, I was able to just use the HTML from my blog. The only p- property in my HTML is the p-name. https://github.com/microformats/microformats2-parsing/issues/6#issuecomment-357550670
# gRegorLove Definitely in favor of blocking implied p-name if other p-* exist; it's on my mental roadmap for the near future in php-mf2.
# KartikPrabhu ha!
[miklb] joined the channel
# KartikPrabhu Zegnat's new rule is easier to implement
# Zegnat I realised the same limitation aaronpk. I actually sat down and started writing down the algo for VCP because I couldn’t keep it straight any more: https://wiki.zegnat.net/media/mf2dom.html
# gRegorLove php-mf2 keeps objects of properties it's parsed by prefix, so checking if other p- have been parsed is easy.
# gRegorLove Longer-term, I don't know. Short-term, it seems like a smaller change that is less likely to cause unexpected results.
# gRegorLove I won't be implementing it too soon, so if the discussion goes that way (broadening it) I'm fine with that.
# gRegorLove I haven't looked over the earlier conversation on the mf wiki either
# [kevinmarks] hm. There was some value in assuming that a name would always be available, but implying unhelpful ones is less good (like the "a jpg" alt text)
# [kevinmarks] implied names having load of newlines in has always been annoying
# gRegorLove Definitely add examples to https://github.com/microformats/microformats2-parsing/issues/6 where stopping based on *any* other property would be helpful for implied name.