#microformats 2017-01-12

2017-01-12 UTC
KevinMarks joined the channel
gRegorLove joined the channel
#
gRegorLove
Here's what I'm running into with php-mf2: for backcompat it goes through and updates mf1 to mf2 classes, then parses as mf2. This results in some duplicate properties. E.g. http://pin13.net/mf2/?id=20170112021546067
#
gRegorLove
I'm thinking to avoid that, the "easiest" might be to go through all the elements on an mf1 root and remove /alter the mf2 classes first
#
gRegorLove
Then go through and upgrade the mf1 classes within the root and parse them.
#
gRegorLove
Still seems kind of messy, though. E.g. alter anything p-* with some non-mf2 prefix.
#
aaronpk
I thought the backcompat methodology was well documented?
#
gRegorLove
In that linked example, <span class="p-name">Testing</span> might become <span class="ignore-p-name">Testing</span>
#
gRegorLove
The algorithm is, yes.
#
gRegorLove
The only alternative I'm seeing to what I just described is a full-fledged mf1 parser as a fallback.
#
gRegorLove
In that example, the p-name and e-content classes are supposed to be ignored.
#
gRegorLove
Because it's an mf1 root
#
gRegorLove
The conversion of mf1 => mf2 class names and subsequent parsing works great right now.
#
gRegorLove
But I need to ignore existing mf2 classes in that instance
#
KartikPrabhu
I don't think there is a good way to be fool-proof when mf1 and mf2 are mixed weirdly
#
KartikPrabhu
mf2py gives the same result
gRegorLove joined the channel
#
gRegorLove
Yeah, thinking it through more altering/removing the mf2 classes I want to ignore affects the parsed output. Correct number of properties, but the classes within the parsed HTML are then wrong.
KevinMarks, KevinMarks_, tantek, nitot, adactio, Calli and ben_thatmustbeme joined the channel
#
@kembellec
Documenter une page HTML(5) pour Google, les formats d'exposition : PageMaps, #Microformats, #RDFa, #Microdata https://developers.google.com/custom-search/docs/structured_data%23using-resource-description-framework-in-attributes-rdfa #SEO
(twitter.com/_/status/819625384648048641)
KartikPrabhu, tantek and nitot joined the channel