#microformats 2018-08-03

2018-08-03 UTC
#
@nagahitoyuki
↩️ #SearchConsole の #構造化データ だと #hatom として表示される。従来はラベルの「rel="tag"」だけが検出されていた。#Microformats の #hfeed がルートで付いているけど、#hentry を含まないと他の諸々の項目も検出されないんだ。#SEO効果 が確認されれば #Blogger の新テーマの密かな利点だろう。
(twitter.com/_/status/1025173632224440321)
jg joined the channel
#
@nagahitoyuki
↩️ #人気ブロガー の #あんちゃ の #まじまじぱーてぃー のソースコードを調べてみたら記事に #Microformats がきっちり入っていた。hentry:記事、vcard:著者名、updated:公開日、entry-title:タイトル、entry-content:本文、等々。やはり #SEO対策 に役立つのかも知れない。https://www.nagahitoyuki.com/2018/05/explore-the-technique-that-ancha-drives-500000pv-per-month-on-mazimaziparty.html
(twitter.com/_/status/1025211704286695424)
#
@nagahitoyuki
↩️ #人気ブロガー の #あんちゃ の #まじまじぱーてぃー のソースコードを調べたら記事に #Microformats がきっちり入っていた。hentry:記事、vcard:著者名、published:公開日、entry-title:タイトル、entry-content:本文、等々。やはり #SEO対策 に役立つのかも知れない。https://www.nagahitoyuki.com/2018/05/explore-the-technique-that-ancha-drives-500000pv-per-month-on-mazimaziparty.html
(twitter.com/_/status/1025212821578047489)
[xavierroy], [tantek], swarfega11, tantek__, Skaag0, ripazha and siso_ joined the channel
#
Zegnat
Yesterday was a PSR dev day, I think today will be a mf2 day :)
wsm, [kevinmarks], [grantcodes], adactio and [jgmac1106] joined the channel
#
@nagahitoyuki
↩️ #人気ブロガー の #あんちゃ の #まじまじぱーてぃー のソースコードを調べたら記事に #Microformats がきっちり入っていた。hentry:記事、author:著者名、published:公開日、entry-title:タイトル、entry-content:本文、等々。やはり #SEO対策 に役立つのかも知れない。https://www.nagahitoyuki.com/2018/05/explore-the-technique-that-ancha-drives-500000pv-per-month-on-mazimaziparty.html
(twitter.com/_/status/1025329487188131841)
[Vanessa] joined the channel
#
sknebel
I'm poking at the mf2py tree issue again
[grantcodes], tantek__, [Khurt_Williams], indy, GeekDude28, Dwarf3, [jgmac1106] and [pfefferle] joined the channel
#
@growdigital
↩️ dammit, need to add absolute URLs for microformats first!!! and, er, documentation in the readme…
(twitter.com/_/status/1025373794075140099)
jackjamieson, [xavierroy] and [dougbeal] joined the channel
#
sknebel
snarfed and anyone else interested in mf2py: https://github.com/snarfed/mf2py/pull/2
#
Loqi
[sknebel] #2 Implement and document safe operations on incomplete copies of BS4 elements
[generativist], [dougbeal], tantek__, jackjamieson, [jgmac1106], [chrisaldrich], [cleverdevil], [Khurt_Williams], chrisaldrich, [pfefferle], schmarty and [kevinmarks] joined the channel; schmarty left the channel
#
sknebel
aaronpk: the "Warning: DOMNode::appendChild(): Document Fragment is empty in..." thing is preventing me from logging into Quill!
#
aaronpk
oh no! wait I thought I fixed that
#
aaronpk
maybe I forgot to update quill
#
aaronpk
ah forgot to finish that
#
aaronpk
try again
#
sknebel
aaronpk: works, thx
[cleverdevil] joined the channel
#
sknebel
agh template tags
#
sknebel
knew some edge case would pop up
#
sknebel
working on reducing the copying in mf2py while still have it not modify dom tree's it is given. and missed that we also "handle" template tags by just deleting them
#
sknebel
tests++
#
Loqi
tests has 5 karma in this channel over the last year (11 in all channels)
tantek__ joined the channel
#
KartikPrabhu
is this about not modifying the given soup?
#
tantek__
not even some fresh ground pepper?
#
Loqi
Welcome, tantek__. We've had an influx of IRC spam recently, and you were not yet recognized as a non-spammer. Your previous message wasn't sent to the channel, but I'm repeating it below so everyone can see it. You are now marked as verified, so your future messages will be sent as normal.
#
Loqi
tantek__: not even some fresh ground pepper?
#
KartikPrabhu
we do add some pepper to mf1 soups but don't do anything with the soup that the user gives us
#
sknebel
which involves some tricky magic copying only some of the noodles in the soup, while keeping sometimes the filling from the original noodle in the copied one!
#
sknebel
KartikPrabhu: yes
#
KartikPrabhu
yeah, the blanket deletion of <template> will affect tests
#
sknebel
(since I just checked) all in the spec about them is in a non-normative section "ignore <template> elements - stuff between <template> tags don't end up in the DOM"
#
sknebel
KartikPrabhu: the blanket deletion isn't new, it's just a spot outside backcompat where we modify the soup
#
KartikPrabhu
yeah I know. It is actually very old code
#
KartikPrabhu
evne before my time
#
KartikPrabhu
so yeah the tests I added would have failed with <template> too
#
KartikPrabhu
totally overlooked that one
#
sknebel
which tests?
#
KartikPrabhu
the "check if the document is modified" tests
#
sknebel
I just did ones that just compare the HTML serialisation
#
sknebel
skipping <template> in parsing would be relatively easy, but getting them out of e-contents is annoying
#
KartikPrabhu
actually I am not sure if we should be deleting <template> from e-* : html
#
KartikPrabhu
tantek__: ^
#
tantek__
good question
#
KartikPrabhu
no use case yet, but the mf2 parsing says to skip all <template> tags
#
KartikPrabhu
I agree with that for all properties except e-*>html is the strane one
#
sknebel
thought about that too. kinda the same as with script in e-content: everyone using e-content from outside sources is going to sanitize it anyways, so it'd not be soo bad?
#
tantek__
I think we decided conservatively that it made more sense to skip the <template> tags, until someone showed a real world use-case to include them or do template processing or something
tantek joined the channel
#
sknebel
I think we initially didn't do anything
#
sknebel
and then someone had a template setup with mf2 classes, and we parsed that as if it were content
#
tantek
by "didn't do anything" you mean didn't do anything "special", as in treat template like span
#
KartikPrabhu
it would be totally possible in mf2py to not parse a <template> for any properties but keep it is e-* > html
#
sknebel
yes, sorry, meant treat like span
#
sknebel
oh, that's really older than I though
#
KartikPrabhu
yeah, that is very old code
#
Loqi
[tommorris] tantek: yes, the template tag needs to be ignored. mf2py already does this and I believe php-mf2 does too. someone reported it on IRC a while back (Hixie perhaps?)
#
tantek
oh hey then we should have a test for ignoring it
#
sknebel
not in the general test suite it seems. mf2py has one, but that doesn't have any opinion on the e-content case
#
sknebel
(I also like how the template deletion thing is in a file called "temp_fixes.py", added 2014 and since then only updated to match coding styles)
#
KartikPrabhu
yup, it is pretty much consistent through history
#
sknebel
okay, I'll sleep over this. If anyone is willing to offer a firm opinion if including <template> tags in e-content is acceptable or not I'll consider it in the morning
#
sknebel
good night!
#
Loqi
sleep tight!
#
KartikPrabhu
sknebel: lets follow spec for the time being and ignore it. night!
bradenslen joined the channel
#
@nagahitoyuki
↩️ #SEO対策 で強力なサイトの多くが #Microformats のhentryを使っている。たぶん #WordPress の人気のテンプレートに付いているせいなのかも知れない。今はもうMicroformats2のh-entryが出ているけど、しかし #Google検索 は #構造化データ として認識しないらしいんだ。古いままでやるべきだと考える。
(twitter.com/_/status/1025526518556983296)
[chrisaldrich] joined the channel