#microformats 2013-09-20

2013-09-20 UTC
jgay, colares, tswicegood, rknLA, nonge_, tantek, singpolyma, tobyink, eschnou, pfefferle, chiui and gjones joined the channel
#
gjones
Looking for the parser rules for "value" property anyone known where on the wiki I can find them
barnabywalters, jschweinsberg and gjones joined the channel
#
tantek
gjones - value class pattern
#
tantek
linked from the microformats2 parsing spc
#
tantek
note the steps when parsing properties where it says: "parse the element for the value-class-pattern, if a value is found then return it. "
#
tantek
to make sure your parser is doing it at the right time, for the right properties
#
tantek
and in that statement, value-class-pattern links to http://microformats.org/wiki/value-class-pattern
#
gjones
no the value part of the h-* object with type, properties
#
tantek
gjones - ah that! :) that shows up as a result of parsing *either* a property with an h-* object or now as a result of parsing e-* properties.
#
tantek
the latter is still in the etherpad and I need to incorporate it into the spec
#
tantek
where it says: "parse a child element for microformats (recurse) "
#
tantek
first bullet:
#
tantek
"if that child element itself has a microformat and is a property element, add it into the array of values for that property "
#
tantek
(which is clearly not explicit enough - good catch)
#
gjones
OK, its not very clear in the document your line "a property with an h-* object" is a much clear way of explaining it. I just wanted to check I got it right - which I have
#
gjones
http://microformat2-node.jit.su/ is now updated with all the things we talked about
#
gjones
It has the new e-* structure
#
tantek
gjones - good feedback about h-*
#
tantek
edited /microformats2-parsing (+380) "/* parse an element for class microformats */ add explicit structure to be created when child element itself has a microformat and is a property element"
(view diff)
#
tantek
gjones take another look at http://microformats.org/wiki/microformats2-parsing#parse_an_element_for_class_microformats - I added a bunch more explicit details about child h-*, "value" etc. hopefully that makes it clearer
#
tantek
is going back to sleep
#
gjones
Thats much clearer
#
tantek
hopefully it also describes what you're doing :)
#
tantek
gjones - the examples here (especially where it says FOR PARSERS ONLY) should help provide concrete HTML->JSON conversion tips: http://microformats.org/wiki/microformats2#h-card_org_h-card
#
gjones
Yes the output structure, the parser is giving, just worried me I could not find anything on the wiki that clearer describe the logic. Now we have that : )
globbot, colares, chiui, TallTed, tantek and tantek_ joined the channel
jgay and tantek joined the channel
#
glennjones
edited /microformats2 (+9) "Change URL to point to version on my own domain"
(view diff)
bret and JohnBeales joined the channel
chiui, romainneutron, tobyink, tantek, jschweinsberg, gavinc and Soopaman joined the channel