[davidmead]i noticed `h-cite` is being used as a wrapper for the album title and artist in Known Listen plugin. is that a correct use? doesn’t feel like it
cjwillcockthat date stuff may need to be hidden behind an option to make this useful for others, but for my immediate use, I wanted the familiar PHP built-in Dates
aaronpkPHP does a fine job of re-creating the object using new DateTime("2018-12-13T14:54:29-05:00"), so i'm not sure why you'd need it broken out like that
cjwillcockso I stopped being restricted by what was in the JSON format, and just went with what was going to make working with this easier/faster down the way
aaronpkmy inclination is it's not, because i rarely actually use the parsed mf2 tree directly. for example most of my code is actually using XRay, where XRay is the one that uses the output of this parser. I also often serialize things as JSON to stash on disk or in a database, and I want that to "just work"
[tantek]Keep asking yourself, why are you doing the work? If you don’t have a very concrete answer with direct user benefits then you’re likely wasting your time better spent on something with actual user benefits
[davidmead]true. that’s why i asked. guess i should also check in #known just in case something is consuming it internally, or it’s needed for POSSE etc.
cjwillcock!tell aaronpk I updated https://mf2.w6k.ca - both issues we discussed are fixed (false-positive backcompat items; experimental properties on dt)
cjwillcockmost of those tests I touched started failing with the switch to PHP-7.3 (IIRC). A different representation of timezones started appearing in the output there. Better left as an experiment / left out for now.
nitot, ichoquo0Aigh9ie, [kevinmarks], KartikPrabhu, [eddie], mickael and [pfefferle] joined the channel
Zegnatcjwillcock: I have actually wondered for a while if I would enjoy a mf2 parser that gave me DateTime objects etc back instead of strings. My conclusion was yes, but I didn’t need it enough to go and write a new parser.
ZegnatAnother thing I have thought about adding is a reference to the DOMElement of an object/property. Because sometimes I want to jump into the HTML.
ZegnatI guess the thought difference is between parsers that parse into a language-native structure vs parse into mf2 JSON (http://microformats.org/wiki/microformats2-json). Most of the current parsers stick very close to the JSON
ZegnatYeah, that is what I meant, KartikPrabhu :) It may not always make sense in a language/project to have a JSON document to work on. But those are businesslogic choices.
ZegnatI would have separate classes for objects and properties, and I could see both having a method pointing at their DOMElement. Not sure it is worth writing that all out though, as it is likely to be language specific anyway
[jgmac1106]though [tantek] looking at MDN docs good to see Mf1 should do a session at an IWC updating IWC to mf2 PR might not be accepted but good to have on file