#microformats 2014-05-04

2014-05-04 UTC
KevinMarks, Atamido, krendil, joeysim and iSRAELi joined the channel
#
iSRAELi
:)
#
iSRAELi
hi
#
KartikPrabhu
hi iSRAELi
joeysim, globbot and Garbee joined the channel
#
iSRAELi
:D
eschnou, bret and joeysim joined the channel
#
iSRAELi
BRET KING
eschnou and barnabywalters joined the channel
#
barnabywalters
looking at http://microformats.org/wiki/value-class-pattern#Simple_Examples, I can’t actually see a use case for value-class other than datetime parsing
#
barnabywalters
of the two examples given, one is no longer relevant in microformats2 (telephone properties have no separate “type” and “value”, they’re just a string value)
#
barnabywalters
and the geo one is thoroughly confusing
#
barnabywalters
why not just put the geo class on the bit which needs parsing?
#
barnabywalters
the only use case for value-class which seems demonstratably valuable is datetime parsing where the date and time components are separate
#
barnabywalters
i.e. value-class with multiple value components
#
barnabywalters
and php-mf2 handles datetime data attributes absolutely fine
joeysim joined the channel
#
barnabywalters
so KartikPrabhu, whilst value-class parsing is in the spec, without a solid use case (i.e. an actual need for it) I don’t want to add even more logic to php-mf2 yet
#
barnabywalters
and in fact, the <data> elements in that gist could be replaced with <time> elements
#
barnabywalters
the “multiple elements combined to make property value” is the only compelling use case, and there are some issues to be worked out
#
barnabywalters
i.e. are the components joined with spaces or without?
#
barnabywalters
with datetime data it’s easier
#
@rachelmoraa98
It's been a while since I hcard Scotty mcreary's the trouble with girls
(twitter.com/_/status/462961456955142144)
#
kylewm
KartikPrabhu: I added the backward compatibility stuff here https://github.com/kylewm/mf2py/blob/backcompat/mf2py/backcompat.py … it's live on my site, I can send a PR now or try it out for a couple days first and see if it breaks anything
#
kylewm
it let me leave an incredibly spammy looking reply from wordpress.com http://kylewm.com/note/2014/04/28/2#replies
netweb, JohnBeales, voxpelli and bret joined the channel
#
KartikPrabhu
!tell barnabywalters here is my use-case for looking at this. On my site I want to delay the loading of comment avatars (i.e. u-photo of a p-comment h-cite) until after all the content has loaded. The only way to do this at the moment is to use javascript to insert the src of the img after DOM load. But this means that the mf2 parsers won't see the u-photo. I was thinking of inserting a data element with class=value and valu
#
Loqi
Ok, I'll tell him that when I see him next
#
KartikPrabhu
kylewm: the backcompat looks good. send me a PR whenever you are satisfied that it works well
tantek, eschnou, joeysim, krendil and tantek-ipod joined the channel
#
tantek
edited /social-network-anti-patterns (+167) "/* Enter your other site login and password */ Delta Add To Google Calendar"
(view diff)
tommorris joined the channel