2018-03-24 UTC
[mrkrndvs] joined the channel
# 00:39 Loqi [manton] IndieWeb generation 4 and hosted domains
# 00:39 Loqi [manton] IndieWeb generation 4 and hosted domains
[snarfed] joined the channel
[kevinmarks] joined the channel
# 02:13 Loqi [manton] IndieWeb generation 4 and hosted domains
# 02:27 gRegorLove php-mf2 has an issue filed for it and I'll have a PR this weekend
# 02:27 tantek gRegorLove: is it possible the mf2py at microformats.io is out of date?
# 02:28 tantek that begs the question of *.microformats.io maintenance
# 02:29 tantek does it get autodeployed perhaps when a new version is "marked" or whatever?
# 03:51 KartikPrabhu yes rel-tag in hreview backcompat is only in the new version of mf2py 1.1.0 which is not released to pypi yet
# 04:10 aaronpk I don't actually know how to update php.microformats.io
tantek and [jeremycherfas] joined the channel
# 06:20 gRegorLove I suppose we could have php.microformats.io redirect to pin13.net?
[unoabraham], [kevinmarks], tantek and Garbee joined the channel
tantek joined the channel
# 14:24 aaronpk I think it's on heroku right now? Not sure if there is any benefit to that
# 14:33 Zegnat 3 parsing errors in a single test case (implied-title) ... Alright, time to fok mf2/tests ...
[kevinmarks] joined the channel
# 14:36 KartikPrabhu aaronpk: you reach out to veganstriaghtedge on github to update php.microformats.io
# 14:40 Zegnat [kevinmarks], I will be sending a PR, yes. Since php-mf2 pulls the official repo
# 14:40 KartikPrabhu [kevinmarks]: would also be good to figure out how to push the new mf2py to pypi
# 15:04 Zegnat [kevinmarks], it looks like you have commit access to the tests? Could you look into merging the two outstanding PRs?
# 15:11 aaronpk I have sites that automatically deploy from github on my own servers too
[kim_landwehr] joined the channel
# 15:16 Zegnat Why do the tests have a special datetime format? This seems wrong. Surely the mf2 spec provides us with the exact strings that should be used, so we should be testing for those?
# 15:23 Loqi [microformats] tests: Microformats test suite
# 15:23 Zegnat E.g. I see a failing test because php-mf2 is correctly reporting the exact string used in the HTML, but the test case has stripped the T delimitor and replaced it with a space
# 15:23 Zegnat is very tempted to start a test repo from scratch
# 15:24 sknebel there's also an open bug about some tests having that, I think because at some point there was some work towards date normalization that never got anywhere?
# 15:25 sknebel yeah, these were added by glennjones who I think also started normalization work in the JS parser
# 15:29 sknebel IMHO, fix the test case and remove the section from the readme
# 15:40 sknebel I don't think so, no. e.g. am/pm timestamps aren't normalized either, but not listed as an example there, right?
# 15:41 sknebel or are they normalized? haven't looked into that part too much
# 15:42 Zegnat I think ordinal dates and am/pm needs to be normalised, yes.
# 15:42 Zegnat I think all the possible outputs listed in that last step are HTML5 valid date time strings
# 15:43 sknebel whereas the ordinal date part doesn't say anything on converting it
# 15:44 Zegnat pm “suffix to add 12 to HH value less than 12”
# 15:44 sknebel yeah, it sounds like that doesn't match as a valid time string then
# 15:45 Zegnat I think all the am/pm normalisation is covered in the vcp
# 15:46 Zegnat But I don’t know about invalid dates. And to be honest, we accept invalid dates through the datetime attribute anyway, as no normalisation is done.
# 15:48 Zegnat YYYY = YYYY + floor(DDD/365), DDD = DDD % 365
# 15:57 Zegnat still thinks we should normalise all dt-* output
# 15:57 Zegnat But I am not writing a spec proposal for that :P I like to steer clear of vcp
[kevinmarks] joined the channel
# 16:00 [kevinmarks] I ran a Facebook to contacts importer a while back, and it normalised birthdays without years to 2000, so they're all turning 18 this year
# 16:06 Zegnat That’s true [kevinmarks]. But those are all supported now, I believe so not a problem
# 16:07 Zegnat Although dates without years are not supported in vcp
# 16:13 Zegnat I am now in a loop of "composer update mf2/tests" and "./vendor/bin/phpunit"
# 16:38 KartikPrabhu fixed AM PM conversion in mf2py experimental (still case sensitive though)
# 16:49 Zegnat And of course, as this is about e-* parsing and entire blob with lots of whitespace, php-mf2 is still failing at it and I have no idea if it is the test or php-mf2 right now.
# 16:50 Zegnat Because e-* parsing is incredibly hard to do by hand
# 16:50 Zegnat Lets see if I can get PHPUnit to escape the whitespace, that might make it easier to catch these
[kevinmarks] joined the channel
KartikPrabhu joined the channel
# 17:20 Loqi [gRegorLove] #27 vcp: Clarify ordinal dates in parsed result
# 17:22 Loqi [Zegnat] I think ordinal dates and am/pm needs to be normalised, yes.
# 17:23 Zegnat I just think that dt values should be normalised in general. But as a first step, no I have not changed my mind. If the spec allows YYYY-DDD for date, it should also allow it in the last concat step
# 17:24 Zegnat Normalising everything to valid HTML5 datetime values seems like a future project.
# 17:26 Zegnat Oh, I locally merged my rel-parsing PR with the central-tests PR, and I am happy to report that the rel-parsing PR makes php-mf2 pass some tests it didn’t before! :)
# 17:33 Zegnat Maybe add your thoughts on the ordinal date on the issue as well, gRegorLove?
# 17:33 Zegnat Too many implementers. This is a good thing. Haha
# 17:43 Zegnat Now I kinda want to add folders using that storage structure to the tests
gRegorLove_ joined the channel
# 19:11 gRegorLove_ rel-tag backcompat question for this example: <a href="http://fberriman.com/tag/conferences/" rel="tag">conferences</a>
# 19:11 gRegorLove_ "take the last path segment of their "href" value as a value for a p-category property"
# 19:34 Zegnat Oh, hmm, that sounds like a spec mistake. I am pretty sure "" is the last path segment
# 19:35 Zegnat So intent is probably “last non-empty path segment”
# 19:36 Zegnat Possibly after resolving the URL (so you have taken out single-dot and double-dot path segments)
# 19:37 Zegnat Although I might be berated for being too technical and theoretical on that resolving point again ;)
# 19:46 gRegorLove_ So I think as a minimum I will remove the trailing slash, then get the last segment.
# 19:46 Zegnat conferences seems correct to me too. If the spec says last segment, the spec is wrong.
# 19:47 gRegorLove_ Can always iterate on it more later. :) This adds rel-tag to php-mf2 hentry parsing, so it's a good step forward.
# 19:47 Zegnat Mind opening an issue? I don’t know where in the spec this is ...
# 19:54 Zegnat Same here, trying to bring my plain text parsing to php-mf2 :D
# 19:54 gRegorLove Hm, PHP's DOMDocument doesn't let you create HTML5 elements like <data> it appears?
# 19:55 gRegorLove Trying to do something like mf2py, create the <data class="p-category"> and append it.
# 19:58 KartikPrabhu gRegorLove: another way would be to create a <abbr> and put the value in the title attribute
# 20:09 Zegnat You are not the only one struggling with DOMDocument tonight, gRegorLove.
# 20:09 Zegnat I just spent 15 minutes tearing my hair out :P
# 20:09 gRegorLove TIL "C14N() returns an empty string if the node is not included in the document tree"
# 20:12 Zegnat tagName property isn’t uppercased in PHP, but it should be for HTML per DOM spec. But of course, PHP DOM doesn’t actually know HTML so it doesn’t conform.
# 20:15 Loqi tests has 3 karma in this channel (18 overall)
nitot, [jeremycherfas], [snarfed] and [kevinmarks] joined the channel
# 21:37 Loqi [gRegorLove] #164 rel=tag hentry/hreview backcompat
# 21:40 Zegnat Feel free to tag me as reviewer whenever, gRegorLove. Or do I need to be added to the repo for that? (Which you can also do.)
[cleverdevil], [gerwitz] and [jjdelc] joined the channel
uf-wiki-visitor joined the channel
# 22:27 uf-wiki-visitor What's up
# 22:27 uf-wiki-visitor Love you
[kevinmarks], [kimberlyhirsh] and [miklb] joined the channel
[snarfed] joined the channel
# 23:44 gRegorLove Looks like I don't have permission. aaronpk or tantek might need to.