#microformats 2018-03-25
2018-03-25 UTC
[cleverdevil], rodney1, [kevinmarks], [miklb], [snarfed], barpthewire, tantek, [eddie], nitot, KevinMarks and webchat254 joined the channel; webchat254 left the channel
#
Zegnat Super close to a PR: https://github.com/Zegnat/php-mf2/tree/plain-text-parsing

KevinMarks and Garbee joined the channel
KartikPrabhu joined the channel
#
aaronpk Zegnat++ for this comment, I would not have thought of that https://github.com/indieweb/php-mf2/pull/164#issuecomment-375959695

#
KartikPrabhu aaronpk: Zegnat: to avoid that mf2py makes a copy of the entire mf1 backcompat root and works only on that

#
KartikPrabhu oops

#
KartikPrabhu I accidently closed that PR

#
KartikPrabhu how do I undo it

#
KartikPrabhu oh ok reopen

#
KartikPrabhu when did I get so many rights on php-mf2

#
KartikPrabhu <muhahaha>

[eddie] joined the channel
#
KartikPrabhu lol I have more rights on php-mf2 than on mf2py :P

#
KartikPrabhu yeah I am in indieweb/core so I have rights to php-mf2

#
Zegnat There are a few ways we could get around the contaminating HTML with temp elements thing. We already need special logic for the innerHTML functionality needed for e-* parsing. Could easily be extended to not include certain elements. Like data elements with a class “php-mf2-backcompat-data” or something.

#
aaronpk december 2016 apparently https://blog.github.com/2016-12-12-resolve-simple-merge-conflicts-on-github/

#
KartikPrabhu GWG this is only for rel-tag as described for hentry and hreview backcompat parsing

#
KartikPrabhu not generic rel values

KevinMarks joined the channel
#
KartikPrabhu by "such posts" of course it means posts without mf2 roots

#
KartikPrabhu GWG: unless there are examples out there it isn't a good idea to add things to backcompat parsing

#
KartikPrabhu I don't think rel-syndication was even a thing during mf1 days

#
KartikPrabhu GWG: all backcompat rules are ignored if there is a mf2 root, so unless they are using purely mf1 with rel-syndication

#
KartikPrabhu if you find any examples you can start an issue at https://github.com/microformats/microformats2-parsing

#
Loqi [microformats] microformats2-parsing: For collecting and handling issues with the microformats2 parsing specification: http://microformats.org/wiki/microformats2-parsing

KevinMarks, tantek and kaushalmod joined the channel
#
gRegorLove Good catch on the added <data> elements, Zegnat.

#
gRegorLove I kinda copied mf2py but didn't realize it was working on a copy of the elements.

#
gRegorLove Adding a special class that's ignored later might be the simplest solution currently, without a big refactoring of the code.

#
gRegorLove Because the backcompat() function is going through mf1 classes and adding mf2 class names where necessary, then the parser runs on it as if it's authored mf2

#
gRegorLove This raises a similar issue I hadn't thought of before: http://pin13.net/mf2/?id=20180325183710569

#
KartikPrabhu mf2py works on the copy only for baccompat

#
gRegorLove Not sure if there's mf1 like that in the wild, though.

#
gRegorLove KartikPrabhu, makes sense.

#
KartikPrabhu oh hmmm i think mf2py will also break on that

#
KartikPrabhu yup it does

#
gRegorLove Obviously need some real life examples before we spend time on that. p-name is probably a bad example, but there might be other mf1 properties.

#
KartikPrabhu right not fixing it now

#
gRegorLove glances at WordPress

#
KartikPrabhu ha! mf2py does something worse http://pin13.net/mf2/?id=20180325184232681

#
KartikPrabhu mf2py will remove the p-name since it does that to ignore mf2 properties

#
gRegorLove Hehe

#
gRegorLove I knew before looking that irc notification was probably GWG since I mentioned the magic word :)

KevinMarks_ joined the channel
#
gRegorLove Yeah, it is. I keep thinking we're "almost done" then this stuff comes up. :) It is getting better, though!

webchat140 joined the channel
#
gregorlove edited /hentry (+1434) "Add Wayback Machine links for dead atomenabled.org references" (view diff)
#
gRegorLove Confirmed: I entered "1" for that ReCaptcha^.

#
gRegorLove Now I'm curious *how long* it's been doing that - if it's just since the shutdown notice or earlier, heh

#
gRegorLove !tell aaronpk Can you add Zegnat to the indieweb github team so we can assign reviews?

#
gRegorLove I'm not sure most of us were aware of microformats repo at the time php-mf2 was set up. Think it used to be under barnabywalters, then since the most use was indieweb, it got moved there.

#
gRegorLove Or maybe not. maybe it was always under indieweb.

#
gRegorLove Maybe. I don't really mind either way; not opposed.

#
gRegorLove Hmm, I might have a simpler solution for the rel-tag added elements. Add it as a direct child of the hentry element. So it shouldn't conflict with the entry-content element.

#
gRegorLove tries it

#
gRegorLove Might still cause issues with nested mf1

#
gRegorLove Appears to work! Just a whitespace issue in the test aaronpk added

#
gRegorLove Yeah, it works, but still fails if there's an hentry.entry-content nested in an hentry.entry-content.

#
gRegorLove Odd enough of an edge case that it's ok?

KevinMarks joined the channel
#
Zegnat One line hotfix that should probably land before marking 0.4.2: https://github.com/indieweb/php-mf2/pull/166

tantek, KevinMarks_, [kevinmarks] and [eddie] joined the channel
#
KartikPrabhu tantek: could you clarify https://github.com/microformats/microformats2-parsing/issues/27 ? Basiclly should ordinal dates be converted to MM-DD in the final step of http://microformats.org/wiki/value-class-pattern#Date_and_time_parsing

#
KartikPrabhu hmmm converting ordinals to MM-DD is tricky due to leap years and all that

#
KartikPrabhu yes

#
KartikPrabhu DDD = 060 is Feb 29 in a leap year but Mar 01 in non-leap years

#
KartikPrabhu I don't need to python does it

#
KartikPrabhu in any case, I think would be good to make the spec explicit that this conversion should be done in the last step

#
KartikPrabhu no because it has caused implementor confusion

#
gRegorLove No parsers convert ordinal to MM-DD afaik

#
KartikPrabhu I just added ordinal dates to mf2py yesterday without conversion

#
gRegorLove php-mf2 accepts ordinal

#
gRegorLove I think mf2py does as well

#
gRegorLove tests

#
KartikPrabhu mf2py experimental only

#
KartikPrabhu so I think it would be good to just be explicit about conversion or not

#
KartikPrabhu I can add the conversion to mf2y too

#
gRegorLove I was incorrect, php-mf2 doesn't do ordinal for VCP

#
KartikPrabhu i think released parsers both mf2py and php-mf2 don't do ordinals

#
gRegorLove I think my previous test was only with explicit value in <time datetime=>

#
KartikPrabhu but to add ordinal parsing it would be good to have some agreement so future releases do agree

#
KartikPrabhu yes

#
KartikPrabhu checks other parsers on microformats.io

#
gRegorLove Correct

#
gRegorLove "I was incorrect..."

#
gRegorLove :)

#
KartikPrabhu tantek: Go parser converts to MM-DD, Ruby does not, php-mf2 and mf2py (released version) do not parse ordinals

#
gRegorLove Node gets the ordinal: https://glennjones.net/tools/microformats/

#
KartikPrabhu unsecure connection. me stops

#
gRegorLove Doesn't get the dt-end though, heh

#
gRegorLove I know. It's safe though.

#
KartikPrabhu nope. personal policy ;)

#
gRegorLove I mean, don't enter your SSN or CC ;)

#
gRegorLove :shrug:

#
gRegorLove Someone who's in contact with Glenn should check with him about that.

#
KartikPrabhu yes

#
KartikPrabhu yes

#
gRegorLove Node parser accepts ordinal and produces it.

#
gRegorLove I can add the output to the mf2 parsing issue

#
gRegorLove KartikPrabhu++

#
KartikPrabhu tantek: summariesed

#
tantek edited /value-class-pattern (+37) "assembled dates must be normalized YYYY-MM-DD (because parsed output consuming code likely expects that, either way, simpler for JSON consuming code), proposed since parsers disagree" (view diff)
#
gRegorLove +1 for normalized YYYY-MM-DD

#
KartikPrabhu nice

#
KartikPrabhu is that PROPOSED to get feedback from other implementors?

#
KartikPrabhu got it

#
KartikPrabhu yes fair enough

#
tantek edited /value-class-pattern (+89) "link proposed to issue to comment / provide feedback on #27" (view diff)
#
KartikPrabhu yup

#
gRegorLove Zegnat will be +1 based on previous conversation

#
gRegorLove I'll file an issue for php-mf2

#
gRegorLove !tell aaronpk updated https://github.com/indieweb/php-mf2/pull/164, can you run CI again? PHP5.6 didn't get the updated test somehow https://travis-ci.org/indieweb/php-mf2/builds/358164691

#
gRegorLove That issue is the only one open for php-mf2 milestone 0.4.2 currently. I'm +1 for releasing it after that's resolved.

#
gRegorLove Just added the 0.4.2 milestone to those PRs

#
KartikPrabhu updated ordinal parsing in mf2py experimental

KevinMarks, [cleverdevil], chrisaldrich and KartikPrabhu joined the channel