#gRegorLoveSo once this is in master, we could bump php-mf2 to 0.5.0 for the next release instead of putting it behind a flag
#gRegorLoveThough we're still in that special zero major version, where anything can change at any time and API shouldn't be considered stable (according to semver)
[Kevin_Faaborg], [fluffy], [chrisaldrich], beko, chimo, KartikPrabhu and Sajesajama joined the channel
#Loqi[Zegnat] #14 Should the specification imply properties for <link> elements?
KarlieKloss, [Aaron_Klemm], alexmingoia[dot], alexmingoia-dot-, alexmingoia, [KevinMarks], KartikPrabhu, [LewisCowles], [chrisaldrich], [tw2113], [mapkyca] and itsme1 joined the channel
#ZegnatSlept a solid right hours and now have the headspace to think about stuff again! I'll have a look at https://github.com/microformats/php-mf2/pull/218 again on my lunch break GWG. Let's see if we can get it merged today-ish!
#Loqi[dshanske] #218 Parse an image for src and alt
[jgmac1106], Feliciana, Sajesajama, KartikPrabhu, mauz555 and [mapkyca] joined the channel
#LoqiZegnat has 4 karma in this channel over the last year (64 in all channels)
[jeremycherfas] and [jgmac1106] joined the channel
#Zegnat GWG is it OK if I try to commit that patch I shared yesterday to your feature branch? I am not sure GitHub will let me, but I would like to try. But don’t want to get in your way if you’d rather commit all code yourself
#GWGZegnat: I'm fine if you want to. I was going to do it last night, but I was in the HWC West Coast
#GWGAlso, he apparently pointed out I'm using WP coding style
#ZegnatI don’t think we have a coding style on mf2 parser? Is a bit all over the place
#ZegnatI think there are both tabs and spaces for indent throughout those files? Maybe we should set a code style at some point, but I am not too bothered.
#ZegnatI pushed a series of 4 minimal commits now, GWG. Hopefully all very self-explanatory.
#ZegnatAdded a breaking test for the Sally Ride implied h-card. Then a commit that fixes it. Then a commit that brings another test inline with the new code. And finally a commit where I rewrite a broken test to actually be 3 different tests.
#Zegnat3 different tests so we can test for no alt, empty alt, and an alt with content.
#ZegnatAnd Travis is done, all tests are green! Nice work on that change, GWG!
#ZegnatThat last PR I linked is to get the PHP parser using microformats/tests, but last time I tried there were lots of incompatibilities.
#ZegnatWhy did GitHub have to have troubles right now when I am having a bit of a break from work and want to do some mf stuff?!
#[jgarber]sknebel: With a little nudging this week, I was able to get a handful of microformats/tests PRs closed out. 😄
#[jgarber]Zegnat: I know, right? Rough week for the GitHub operations crew.
#ZegnatTests: 383, Assertions: 849, Failures: 44, Skipped: 1. - when I run my microformats/tests in the PHP parser
#ZegnatTests: 315, Assertions: 787, Skipped: 1. - when I run GWG’s branch with the img alt parsing
#ZegnatSo there is why the tests are not yet run as part of the PHP parser ;)
#[jgarber]What’s the nature of the failures? (generally speaking)
#ZegnatDon’t know. First time I ran it in ~2 years
#ZegnatLast time I rebased the branch was Aug 24, 2018
#sknebel[jgarber]: yeah, but I had totally thought those had been already handled, otherwise I'd done it earlier :/
#[jgarber]Oh yeah, a thing or two may have changed since then. 😄
#[jgarber]sknebel: Not to worry! I only noticed them since I’ve been using the test suite against some code I’m writing. It got me interested and thinking about microformats/tests.
#[jgarber]Feels like it’s _supposed_ to be the canonical authoritative test suite, but it’s also not well-used by parser code bases (maybe?). Or, at least, parser code bases are very out-of-date against the repo.
#[jgarber]Those are some unrefined thoughts, though.
#ZegnatAah, still seeing lots of problems with dates
#[jgarber]> `type: [array of unique microformat "h-*" type(s) on the element sorted alphabetically],`
#ZegnatYep, so that definitely needs a PR in the test suite
#[jgarber]Re: e- parsing `value` … I think only leadiing/trailing space is to be removed.
#ZegnatI think I may look into this omission of implied name, that looks much more like a parser bug, and may get the number of total test failures down
#ZegnatAnd only the first 11 are in mf2 tests, the others are in mf1 backcompat. And I know there are a few still open PRs from gRegorLove to fix some backcompat parsing
#ZegnatAlright, waiting for Travis to kick at it again. Now hard linked to the latest commit on the github repo
#Zegnat!tell aaronpk You are listed as maintainer on https://packagist.org/packages/mf2/tests , the package says it will auto-update, but dev-master has been stuck on a 2018 commit so something seems weird?
#ZegnatThe problem is that I am comparing 2 JSON structures. And sometimes I want to ignore whitespace differences between 2 specific values.
[mapkyca] joined the channel
#ZegnatAlternatively I add a flag to the parser that lets you get the old behaviour again.
#ZegnatBut didn’t the Python implementation also implement the newer whitespace behaviour? Maybe instead of patching how tests are run, we need to look at whether we want to move it forward in the parsing spec
#GWGZegnat: I am saying we may need a custom Assert function then
#ZegnatWouldn’t help because I do not know what items in the JSON output need to use it
#ZegnatI guess I could do it for e-* properties, as those are always value properties next to html properties. And then just strip whitespace from both.
#ZegnatBut does that guarantee that the test was supposed to pass in the first place? Unsure.