#microformats 2018-06-16

2018-06-16 UTC
[tantek] joined the channel
#
[tantek]
It's ok for JS if it uses the parsed result
#
KartikPrabhu
[tantek]: parsed result yes. but not the mf2 classes authored in the HTML, I think
[cjwillcock] joined the channel
#
[cjwillcock]
for clarity: javascript should not manipulate the DOM element based on that elements mf2 classes
#
KartikPrabhu
I would not even attach events based on mf2 classes
#
[cjwillcock]
yes, right
#
KartikPrabhu
all this is for maintenance. You wouldn't want CSS and JS to break when you move around the mf2 classes
#
KartikPrabhu
I have fallen into this trap before
tantek__ joined the channel
#
[cjwillcock]
a specific example: when adding new properties (p-*) to a newly used root context (h-*), given behaviour coded into javascript that is not distinguishing the new h-* context, and is applying the wrong behaviour in the new, different context. Consider: adding p-rating in an h-review-aggregate, where previous code has behaviour (and/or design) dependent on a p-rating in an h-review.
#
[cjwillcock]
avoid all this, by not creating dependencies between design & microformats; behaviour & microformats
#
[cjwillcock]
crosses fingers
#
[cjwillcock]
re: my example, drop the concluding 'in an h-review'
#
KartikPrabhu
[cjwillcock]: yes
#
KartikPrabhu
that is the idea
#
[cjwillcock]
microformats remind me of an easter egg hunt. Not the part where you search them out and gobble them up, the part where you hide them in plain site and try not to look at them before the kids wake up
strugee, [mrkrndvs], tantek__, tantek_, chrisaldrich, [chrisaldrich], KartikPrabhu, nitot, [sebsel], [Vanessa] and [kevinmarks] joined the channel
#
[kevinmarks]
The part where you buy a load of brightly coloured plastic eggs and carefully put sweets in them before inserting them into your house?
[jgmac1106], sebsel, [kevinmarks], barpthewire and [miklb] joined the channel
#
@rubygems
indieweb-post_types (0.3.0): IndieWeb Post Type Discovery for Microformats 2 JSON. https://rubygems.org/gems/indieweb-post_types
(twitter.com/_/status/1008032500327899137)
[miklb], [cleverdevil], sebsel, barpthewire, KartikPrabhu, [kevinmarks], chrisaldrich, gRegorLove, [chrisaldrich], [Vanessa], nitot and [eddie] joined the channel