#microformats 2015-03-15

2015-03-15 UTC
Soopaman1 and KevinMarks_ joined the channel
#
tantek
perhaps document that on the page? but leave the link as a "dead" link with <nowiki> …</nowiki> markup on it
#
tantek
so there's a chance of say digging into the internet archive to find it
#
aaronpk
it's okay to upload the logo to the wiki directly right?
KevinMarks_ joined the channel
#
tantek
hmm - depends on who created which version?
Soopaman, KartikPrabhu, tantek, KevinMarks__, KevinMarks_, Davidino, Soopaman1, KartikPrabhu1 and krendil joined the channel
#
centredentaire
edited /hcard-examples-in-wild (+155) "/* new and uncategorized examples */"
(view diff)
csarven and eschnou joined the channel
KevinMarks_, KevinMarks__, tantek and Acidnerd joined the channel
Soopaman, KevinMarks_, Acidnerd, elux, gRegor`, Mark87, KevinMarks__ and KevinMarks___ joined the channel
#
Mark87
In microformats 2, can I specify an item and one of its properties on the same element? I.e., <div class="h-entry e-content">Hello, world!</div>
#
Mark87
And is that valid for all possible combinations of microformats/properties? Obviously some of them are implied, but for the ones that aren't....
#
tantek
Mark87 no that's never been possible in any microformat
#
tantek
because it conflicts with embedding
#
tantek
let me find the FAQ
#
Mark87
@tantek, so then is there a difference between <a class="h-card p-name u-url" href="...">Mark87</a> and <a class="h-card" href="...">Mark87</a>?
#
tantek
yes of course
#
tantek
the implied rules are there for cases like that where it doesn't make sense to add the class names explicitly, and you don't want to add more elements
#
Mark87
right, but assuming there are no parent microformat objects, the result should be the same?
#
Mark87
If my example was embedded for instance under an h-entry object, then it would show up as properties of that h-entry, but assuming there are no parent objects, there would be no difference? Or am I wrong
#
tantek
!tell kylewm I saw you mention earlier in the discussion about pronouns about different property names for different (human) languages - here's why we don't do that: http://microformats.org/wiki/faq#Q:_Why_do_microformats_use_English_terms_for_property_names.3F
#
Loqi
Ok, I'll tell them that when I see them next
#
tantek
Mark87 - no because having the same syntax do two wildly different things makes it less predictable and thus harder to author
#
tantek
and debug etc.
#
Mark87
so going back to my example of <div class="h-entry e-content">Hello, world!</div>, my parser should imply the p-name from that example for the h-entry, but ignore the e-content?
#
tantek
right
#
tantek
because the e-content is not *inside* any root microformats class name
#
Mark87
gotcha. Thanks!
#
tantek
what language are you writing your parser in?
#
Mark87
php. I'm aware of the very excellent phpmf2 parser, but im interested in writing my own
#
tantek
excellent! then you'll be able to re-use at least the phpmf2 tests!
#
Mark87
indeed! I already have them downloaded
#
tantek
edited /faq (+1717) "Can you mix properties and the root class name, update how to markup your blog a bit, noting h-feed"
(view diff)
#
tantek
Mark87: I added an updated FAQ about this to the top level FAQ (since it has come up a couple of times in the past few months) http://microformats.org/wiki/faq#Can_you_mix_properties_and_the_root_class_name
#
tantek
I hope that makes it more clear
#
Mark87
Yes, I was thinking to myself that it was rather hidden under hCard
#
tantek
edited /hcard-faq (+91) "/* Can you mix properties and the root class name */ see also the general FAQ answer to the question"
(view diff)
#
tantek
Mark87: yes at some point we need to update all the "hcard-faq" to "h-card-faq" and update all the code etc.
#
tantek
but until then, I'll add more general FAQs to the top level document to hopefully make them more findable
#
tantek
edited /hcard-faq (-25) "/* Can you mix properties and the root class name */ wikilink"
(view diff)
shaners joined the channel
#
tantek
edited /faq (-25) "/* Can you mix properties and the root class name */ wikilink"
(view diff)
Mark87, shaners, eschnou, krendil, KartikPrabhu and tantek joined the channel