#barnabywaltersHaving spent a long time away from the parsing spec, I’m not sure if the confusion I’m having is due to unfamiliarity, or actual problems exposed by looking at it with a fresh eye
#tommorristantek, barnabywalters: is it affecting other implementations?
#barnabywalterstommorris: not sure, I’ve been fixing some bugs in php-mf2 and have found potentially confusing language in the parsing spec
#barnabywaltersspecifically, the behaviour I was fixing was not clearly specified anywhere, and in reading it I found language which seems to imply that parsing a property-nested microformat should result in two items in the parent microformat’s property array
#tantekwhat’s the specific question? I thought I was reporting a really obvious bug
#barnabywalterstantek: yep, thanks for reporting it! The issue itself is resolved, the problem (as I pointed out in comments on that issue) is that the mf2 parsing spec does not clearly specify the correct behaviour
#barnabywaltersand then, reading it more closely, it seems to imply that parsing a property-nested microformat should result in two items in the parent’s corresponding property list, one for the bare property (a string) and a nested microformat structure in addition to that
#tantekby property list is that the { } structure?
#barnabywaltersby property list I am referring to the list of values associated with a property name in a microformat structure
#barnabywaltersthe fact that property parsing and nested microformat parsing are separate steps in the spec makes it sound like a parsing a property-nested microformat should result in two items in the parent’s array for the property the microformat is nested under
#tantekbarnabywalters: huh that is weird and no one else seems to have had that interpretation. regardless I’d like to clarify the spec if I can.
#barnabywalterse.g. <div class="h-entry"><span class="p-author h-card">Author</span></div> would result in a h-entry mf with 'author': ['Author', { nested mf value }]
#tantekalso - it makes no sense for there to be two values in an array for the same source of data
#tanteksince every thing in a [ ] is a different piece of data from the author
#tantekso to have two things show up in a [ ] that come from *one* thing the author wrote is only confusing
#tanteknot sure how that could be interepeted as valid in any interpretation
#barnabywalterstantek: agreed that it makes no sense and is likely not a big problem, but looking at the spec with fresh eyes that is how I’m reading it
#barnabywaltersit’s quite obvious from examples how property nested microformats should work, but there’s nothing in the spec which explains that, having parsed a tree for properties, when parsing for child microformats, their values should replace the previously parsed property values
#barnabywalterstommorris: I just checked mf2py, if the version on kartikprabhu.com is up to date then it has a similar nested e- html problem as php-mf2 did. Raising issue now.
#tantekbarnabywalters: it does? huh I thought I checked the latest of the other parsers
#tantekI think kylewm’s is newer (deployment of mf2py)
#barnabywalterstantek: mf2py gets it more correct than php-mf2 did, but still wrong as per kartikprabhu.com — the value of value is a nested dictionary with value and html keys, rather than the html key being added to the root of the nested structure
#barnabywaltersis there a mf2py testing field on kylewm’s site?
#barnabywaltersadded it and moved kylewm’s to the top as it offers both textentry and URL, and is apparently up to date
#tantekagreed on “would expect the most detailed information to be on the project page” yet that’s in contrast with the “don’t have to click too much to find the info"
#barnabywaltersyeah, in theory this is what transclusion should solve. Does mediawiki do transclusion, other than templates? E.g. “embed the examples section from [[mf2py]] on [[microformats2]]”
#barnabywaltersnope, looks like (without extensions) templates are the only way to do this
#tantekedited /comment-brainstorming (+450) "remove reference to "indieweb" from issue / idea - was not relevant to the idea. clarify comment on its own page, vs in a list, vs both." (view diff)