#microformats 2018-07-21

2018-07-21 UTC
[chrisaldrich], [snarfed], [miklb], [kiai], [eddie], ben_thatmustbeme and [kevinmarks] joined the channel
#
@jgmac1106
@sandhawke I am not an editor of the microformats wiki but folks did rewrite the rdf stub on the #IndieWeb wiki you can sign on with your own domain and add to page the page if you wish. More Voices. More Plurality. (http://jgregorymcverry.com/4771-2/)
(twitter.com/_/status/1020641075541790721)
[jgmac1106] joined the channel
#
[jgmac1106]
[wiobyrne] see above from @karthikPrabhu and [gregorlove] we may have to switch your u-url and u-uid in your hcard
[dougbeal], [eddie], barpthewire, [chrisaldrich], [xavierroy] and snarfed joined the channel
#
Loqi
[snarfed] #112 inner whitespace in p- values shouldn't be collapsed
#
snarfed
the mf2 parsing spec on http://microformats.org/wiki/microformats2-parsing refers to textContent, which is what i need, but doesn't say how to generate it
#
Loqi
[Tantek Çelik] microformats2 parsing specification
#
snarfed
i assume that's in the HTML spec?
MeanderingCode, [jgmac1106], [eddie] and [chrisaldrich] joined the channel
#
gRegorLove
I vaguely recall a parsing discussion (or php-mf2 issue?) mf2 property + mf2 root as a child of mf1, but can't seem to find it now. Minimal exmaple of chrisaldrich's markup: http://pin13.net/mf2/?id=20180721175014755
#
gRegorLove
I'm thinking the h-card should parse in the `children`, ignoring the `u-invitee`, but would like to double check that reference, if I can find it.
#
gRegorLove
Not entirely clear from the parsing spec. "if that child element itself has a microformat ("h-*" or backcompat roots) and is a property element, add it into the array of values for that property as a { } structure, add to that { } structure:"
#
gRegorLove
Updated example to contrast how backcompat normally (correctly) ignores the `u-invitee` without the root: http://pin13.net/mf2/?id=20180721175307730
[jeffperry] joined the channel
#
gRegorLove
I'm writing up a parsing issue to clarify it
#
Loqi
[gRegorLove] #37 Clarify parsing for mf2 property + mf2 root inside mf1 root
snarfed joined the channel
#
gRegorLove
Huh, appears the Go parser only does mf2, no backcompat.
#
@Dries
↩️ My personal blog currently implements http://Schema.org using the Microdata syntax. It's probably time to move my http://Schema.org to JSON-LD syntax, so I can cleanly add Indieweb microformats.
(twitter.com/_/status/1020740992826257408)
#
@nitishchpr
ChrisAldrich zeldman alistapart mrdougal swentel drupal ladrupal My personal blog currently implements http://Schema.org using the Microdata syntax. It's probably time to move my http://Schema.org to JSON-LD syntax, so I can cleanly add Indieweb microformats.
(twitter.com/_/status/1020741214423961600)
schmarty[m], [eddie] and snarfed joined the channel
#
snarfed
aha, big thread on textContent in mf2 parsing in https://github.com/microformats/microformats2-parsing/issues/15
#
Loqi
[Zegnat] #15 What should mf2 textContent parsing result in? User expectation vs. DOM specification.
#
KartikPrabhu
yes, if anyone figures out how to implement that let me know :)
#
gRegorLove
Yeah, that spec is in latest alpha of php-mf2
#
sknebel
As said, I have a WIP of some improvements to the python code for that
#
sknebel
Which would fix snarfeds issue
#
sknebel
But has some broken edges Still
#
sknebel
Might be ready for testing tomorrow
#
KartikPrabhu
right we need more test cases
#
KartikPrabhu
I mainly wrote that code so all tests in https://pin13.net/mf2/whitespace.html at the time passed
#
snarfed
KartikPrabhu: zegnat's page i linked has pseudocode for the textContent algorithm :P
#
KartikPrabhu
yes and that is implmented
#
snarfed
ah. great!
#
snarfed
ended up in this rabbit hole while trying to fix the mf2py whitespace bug
#
snarfed
is halfway there
#
sknebel
I thought that a few times in the past few days
#
snarfed
yeah agreed
#
KartikPrabhu
which is why I stuck to the test cases ;P
#
sknebel
More test cases would be great too!
[jgmac1106] joined the channel
#
snarfed
the new test case is complete at least
#
KartikPrabhu
if it doesn't break other tests then count it as a success
#
snarfed
it does :P
#
KartikPrabhu
ha! welcome to my world 2 months ago ;)
[kevinmarks] joined the channel
#
[kevinmarks]
What's that saying? "it's a really good feeling when you fix the last known bug in your code. With a suitable problem you can have that feeling every day for a month."
#
KartikPrabhu
[kevinmarks]: while you are here review please : https://github.com/microformats/mf2py/pull/111
#
Loqi
[snarfed] #111 add dependency version requirements to setup.py
tantek, KartikPrabhu, [chrisaldrich], gRegorLove_, snarfed, dougbeal|mb1 and tantek__ joined the channel