#microformats 2022-05-13

2022-05-13 UTC
jacky and [sebsel] joined the channel
#
Seirdy
WAI-ARIA's role="comment" seems basically equivalent to microformats2 comments except more powerful, since it's easy to make a comment and id semantically linked in a bi-directional manner.
#
Seirdy
specifically WAI-ARIA 1.3
#
Seirdy
i implemented them for displayed webmentions on seirdy.one. example page: https://seirdy.one/2020/11/23/website-best-practices.html. Now I just have to also display webmentions that point to in-page anchors and make those semantically linked to just the sections they reference.
#
Loqi
[Rohan Kumar] Best practices for inclusive textual websites
jacky and ur5us_ joined the channel
#
Seirdy
lowkey thinking that we should at some point make microformats3 and make it use "aria-details" and `role="comment"` for comments, reactions, etc.
jacky joined the channel
#
[tantek]
except what's the consuming use-case? in particular, what mf2 does is identify the different *parts* of a comment (content, author, published) which is the more interesting part because that's what consuming code needs to make sense of a comment.
#
[tantek]
role=comment doesn't actually help with that
#
Seirdy
oh im not proposing getting rid of microformats entirely
#
Seirdy
far from
#
Seirdy
just adding relationships between comments and the parts of posts that are commented on, using aria-details.
#
[tantek]
I'm trying to understand the context in which role=comment actually enables some additional user-visible functionality
#
Seirdy
think of review modes in word processors
#
Seirdy
a comment is linked to a highlighted part of a document
#
Seirdy
through aria-details
#
Seirdy
so you could use a <mark> or <section> element in the document with aria-details pointing to a role=comment
jacky joined the channel
#
Seirdy
role=comment isn't actually doing much on its own, it only exists to describe the relationship declared by aria-details as a "comment" since aria-details is pretty generic
#
Seirdy
as opposed to, say, a full image transcript
#
Seirdy
or editorial note
#
Seirdy
essentially, it's the first step towards moving from "what things are" to "how things relate to each other" beyond the standard parent/child relationships.
#
[tantek]
I don't think such "first step" approaches work unless there's actual interest in some consuming code in doing something with it.
#
Seirdy
the WAI-ARIA 1.3 draft spec lists multiple use-cases.
#
Seirdy
the most obvious is the way people make quoted replies
#
Seirdy
popular in word processors, medium.com, microblogging platforms, etc.
#
Seirdy
oh and forums, similar to interleaved quoting in email
#
Seirdy
JAWS has already implemented support for aria-details
#
[tantek]
those all require discerning the content of a comment from the entirety of the comment, which as noted, ARIA by itself doesn't provide.
#
Seirdy
right, im not saying we should use ARIA by itself
#
[tantek]
what does "support for aria-details" mean? like what does JAWS do differently when it see aria-details?
#
Seirdy
it allows users to read an element's details when focused.
#
Seirdy
so if i focus on a detailed element, i can read the markup in the referenced id
#
Seirdy
it's like obsoleted "longdesc"
#
Seirdy
or like a more advanced "describedby"
#
[tantek]
ah, right
#
[tantek]
I agree with the use-cases listed, my point is the markup "solution" offered doesn't actually solve them
#
Seirdy
so you can use "labelledby" for a short text label, "describedby" for a longer text alternate, and "details" for rich markup. but this begs the question "what is the relationship between the rich markup and the described content".
#
Seirdy
hence, role="comment" for "comments"
#
Seirdy
combine that with mf2 and you can have a mf2 comment only reference a specific part of a work
#
Seirdy
rather than the parent object
#
[tantek]
mf2 h-entry replies already reference by URL what they are in-reply-to, which can include an id
#
[tantek]
maybe we're talking about different use-cases. an mf2 reply is on a different page (and site usually) than the post it is in-reply-to
#
@erikkroes
↩️ I am actually adding some non-semantic HTML (it's all semantic right now!) with the goal of... adding more semantics. Not sure how I can fit in microformats otherwise.
(twitter.com/_/status/1524998289229324290)
jamietanna and [Murray] joined the channel
#
[tantek]
^ would be interesting to see the use-case and existing markup
jacky joined the channel
#
jacky
I don't see a particular design decision as to why nanoseconds or microseconds aren't included at https://microformats.org/wiki/value-class-pattern
#
jacky
(from a cursorary scan)
#
jacky
that is a very handy venn diagram
#
jacky
hmm okay
#
jacky
well I've added support for nanosecond-level precision parsing in time values in the Rust parser
#
jacky
only used if it's detected
#
sknebel
are you making an h-feed for a particle accelerator? :)
#
sknebel
"I just saw some protons smash into each other!!!11 #boom"
#
jacky
lmfaoo
#
jacky
nah so like there's cases where the datetime I get in has nanosecond precision (or even microsecond precision)
#
jacky
I could just forcibly remove them (that would have been easier, now I have to update two libraries lol)
jacky and [jgmac1106] joined the channel
#
[tantek]
sknebel++
#
Loqi
sknebel has 5 karma in this channel over the last year (35 in all channels)
jacky joined the channel
#
@KevinBankston
↩️ You don't think that has to do with the fact that it is a blogging rather than microblogging platform? Bot-tweeting is a lot easier than bot-blogging... (Or are you arguing that intentionally designed platforms should avoid microformats?)
(twitter.com/_/status/1525168779558125569)
jacky, gRegor and [jgarber] joined the channel
jacky joined the channel
#
@kevinmarks
↩️ And on how that went astray a few times: https://www.kevinmarks.com/twitterhatespeech.html PS what did you mean by "microformats" above as you seem to imply something other than how they work
(twitter.com/_/status/1525230107220123659)
ur5us_ and jacky joined the channel
#
[tantek]
ah, he meant "microcontent" in the old early 2000s meaning
ur5us joined the channel