#microformats 2014-05-05

2014-05-05 UTC
KartikPrabhu joined the channel
#
bret
lololol an airline company asking for my gmail credentials? no way
#
bret
bad lazy dev/airline bureaucracy
tantek, netweb, joeysim, ChiefRA, eschnou, edsu, krendil, KevinMarks, charl_, TallTed, elux, brianloveswords, caseorganic, JohnBeales, Atamido_, KevinMarks2 and KartikPrabhu joined the channel
#
KartikPrabhu
tantek: what's the deal with mf2 u-parsing suggesting the use of value-class-pattern (http://microformats.org/wiki/microformats2-parsing#parsing_a_u-_property) but value-class-pattern saying that it does not affect URL properties (http://microformats.org/wiki/value-class-pattern#Basic_Parsing) ?
krendil, tantek, joeysim and KartikPrabhu joined the channel
#
tantek
KartikPrabhu: just getting to your q re: VCP
#
KartikPrabhu
it seems that php-mf2 does not do everything that VCP says to do
#
tantek
interesting.
#
tantek
well there is a VCP test suite
#
KartikPrabhu
oh must look at that. But yeah what is the policy with URL properties?
#
tantek
I'm not sure I understand. Can you give me a markup snippet example that illustrates what you mean?
#
KartikPrabhu
I want to do something like this <article class="h-cite"><div class="u-photo"> <data class="value" value="img-url"></data> </div></article>
#
KartikPrabhu
the idea is to lazy-load avatar images for responses
#
tantek
what does the markup/dom look like after loading?
#
tantek
(and thanks for the concrete use-case! that helps A LOT)
#
KartikPrabhu
so on DOM-load a javascript will load the image and it will be <article class="h-cite"><div class="u-photo"><data class="value" value="img-url"></data><img src="img-url"/></div></article> note only an img-element is added
#
KartikPrabhu
but I want to keep the data element so that mf2-parsers can see the img
#
tantek
why bother with VCP and the extra element?
#
tantek
(div)
#
tantek
oh wait
#
tantek
<data class="p-photo" value="img-url"></data>
#
tantek
and then replace that with <img class="u-photo" src="img-url"/>
#
tantek
no need for a wrapper div
#
tantek
or rather, no need for <div class="u-photo">
#
KartikPrabhu
oh! sure... I was also including a <noscript><img src="fallback-img"></noscript> inside the wrapper div... but the problem is that php-mf2 does not parse data elements and VCP page has no guide to parse for URL properties
#
KartikPrabhu
as in should VCP for URL properties be treated as strings and follow the string parsing rules given in http://microformats.org/wiki/value-class-pattern#Basic_Parsing
#
tantek
look for where it says "if data." in the parsing spec
#
tantek
if php-mf2 doesn't suppor that, just file a bug for that
#
tantek
no need to involve VCP
#
tantek
let's keep it simple / minimal
caseorganic joined the channel
#
KartikPrabhu
oh I see. I was using "u-photo" but a "p-photo" should do the trick! thanks :)
netweb, caseorganic, KartikPrabhu, caseorga_ and caseorg__ joined the channel