#microformats 2023-07-06

2023-07-06 UTC
Logan1 joined the channel
#
JKing
That worked.
[aciccarello] and [schmarty] joined the channel
#
[aciccarello]
[capjamesg] I'd recommend KevinMarks' suggestion of having parsing tests on your site. I added tests that parse to JF2 and it helped me quickly understand if I had screwed up my markup.
#
[aciccarello]
Meanwhile I broke my rss feed and didn't notice till I checked posts in a feed reader weeks later...
#
[tantek]
aciccarello++
#
Loqi
aciccarello has 1 karma in this channel over the last year (11 in all channels)
[jeremycherfas] and eitilt joined the channel
#
[KevinMarks]
Adding tests for your rss and your OGP is probably a good idea too
[schmarty], [Jo], [timothy_chambe], [snarfed], [aciccarello], [jeremycherfas], [pfefferle], gRegor, ben_thatmustbeme, JKing and [Caleb_Hearth] joined the channel
#
[Caleb_Hearth]
what is jf2
#
j​kingweb
A little verbose representation for microformat data.
#
j​kingweb
Less verbose.
#
[KevinMarks]
differently verbose, depending on if you have multiple values for a property…
#
[Caleb_Hearth]
Thanks! Yeah I get the problems with structuring microformats in HTML but it still seems the best solution at this point.
gRegor and btrem joined the channel
#
capjamesg
[KevinMarks] sknebel Do you know a real-world use case for https://github.com/microformats/mf2py/blame/main/mf2py/mf_helpers.py#L4?
#
sknebel
... isnt the possible use mentioned in the doc string a "real world use case"?
#
[KevinMarks]
When you are looking for urls to webmention?
#
[KevinMarks]
Oh hang on, no when you are trying to find a URL from a nested microformat like h-review where it might be inside another one?
#
[KevinMarks]
Or if you have h-feed and want the entry urls
gRegor joined the channel
#
[capjamesg]
I asked because we couldn’t find anyone using this function on GitHub.
#
[capjamesg]
It is the only functions in the mf2py public API that is not the main parser.