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
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
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
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
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 }]
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.
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
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]]”
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)