#microformats 2024-11-01

2024-11-01 UTC
gRegorLove_, jimw, ps_gro, jimw0, [Joe_Crawford], lazcorp, codebuzz, barnaby, [Joschi_Kuphal], Guest6, [morganm], [qubyte], sebbu, Kupietz, [aciccarello] and kimmy joined the channel
#
[snarfed]
if you have an element inside p-name or e-content (etc), is there a way to exclude its text from the parsed mf2?
#
[snarfed]
example: the "Tomorrowland / Walt Disney" image caption is included in e-content here, https://pin13.net/mf2/?url=https://snarfed.org/2024-10-30_53932 , but ideally it wouldn't be
#
Loqi
[preview] [Ryan Barrett] Possible futures for Bridgy Fed
#
[tantek]
[snarfed] in this case, since the image is purely decorative rather than relevant to the content, it would be fine to mark it as such with alt="" role="presentation"
#
[tantek]
I believe that is the scenario on your blog post
#
[tantek]
it's an eye-candy image right? you don't actually mean to imply Bridgy Fed has anything to do with Tomorrowland / Walt Disney, or creating futuristic cities do you?
#
[snarfed]
that's fine for HTML, but would it make mf2 parsers exclude it from e-content?
#
[tantek]
yes the mf2 parsers are based on the HTML, in this case, the alt attribute
#
[tantek]
in general mf2 parsers try do do the most correct semantic HTML thing, so there should never be a concern of the form "that's fine for HTML, but would it make mf2 parsers [do the right thing]?"
#
[tantek]
try to* do
#
[tantek]
that's the point, always focus on getting the HTML "right" first, then see if there is anything special you have to do for microformats, because we try to minimize that as much as possible.
#
[snarfed]
wait, now I'm confused
#
[snarfed]
the text isn't in img alt, it's a separate element, since I want it visible on the page
#
[tantek]
might need to update mf2 parsing to ignore role="presentation" elements in general
#
[tantek]
that would be the right way to mark a separate element so get screen readers to skip it
#
[tantek]
[snarfed] like what would someone reading via a screen reader experience when viewing your post? "Tomorrowland / Walt Disney" out of context like that would seem nonsensical so presumably you don't want that read out loud
#
[snarfed]
sure! role=presentation sounds fine
#
[snarfed]
so it sounds like there's no general or other way to exclude the text content of an element inside p-* or e-* from the mf2 parsed property value
#
[snarfed]
(which is fine! just checking)
#
[tantek]
no existing general way, but we should "simply" re-use role=presentation for that use-case
#
Loqi
[preview] [snarfed] #79 Omit elements with role=presentation from p-*/e-* property values
#
[tantek]
I mean I'd want to omit them from all property values but yeah
#
[snarfed]
oh sure I'll update
Kupietz, xgpt and angelo joined the channel