#microformats 2025-12-18
2025-12-18 UTC
sebbu2, [tw2113], glacier, duanin2, thatcher, leah1, barnaby, [aciccarello] and Izzyp joined the channel
#
[snarfed] so, I'm trying to understand the top-level rels and rel-urls fields that mf2 parsers output. I don't see them on https://microformats.org/wiki/microformats2 . are they common but non-standardized?
#
[snarfed] the problem I'm working on is that rel-urls is a map keyed on URL, and the value is another map with a singly-valued type field, but there can be multiple <link rel=...>s for the same URL with different types. https://github.com/snarfed/bridgy-fed/issues/2255
barnaby joined the channel
#
[KevinMarks] I think that's a conneg-- thing - when we designed it we didn't allow for connection negotiation
#
[KevinMarks] No they're in the spec.
#
[KevinMarks] hm. We'd have to make a breaking change to turn `text` and `type` into lists. Would that be enough? Would we need to make the lists strictly follow document occurence so the text and type align?
#
[KevinMarks] we could ask dinosaur comments to remove the `<link rel="alternate" type="application/rdf+xml" title="RSS .91" href="https://qwantz.com/rssfeed.php">` as it's actually an RSS 2.0 feed and isn't RDF
#
[KevinMarks] also +1 for `title="RSS stands for 'REALLY SUPER COMICS', it is a terrible acronym with many structural problems"`
#
[KevinMarks] if there are multiple rel links to the same url, we lose the additional info for type, text etc
#
[snarfed] [tantek] the concrete problem is feed autodiscovery on https://qwantz.com/ with an mf2 parser. https://github.com/snarfed/bridgy-fed/issues/2255
#
[KevinMarks] are you filtering on type then?
#
[KevinMarks] that's giving a bit too much trust to the source over the linked-to document
#
[KevinMarks] no, that is absolutely historic markup
#
[KevinMarks] ```
#
[KevinMarks] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link rel="SHORTCUT ICON" href="/favicon.ico"><link rel="alternate" type="application/rdf+xml" title="RSS .91" href="https://qwantz.com/rssfeed.php"><link rel="alternate" type="application/rss+xml" title="Dinosaur Comics"
#
[KevinMarks] content="@dinosaurcomics"><meta name="twitter:title" content="Dinosaur Comics!"><meta name="twitter:description" content="how can i be REsponsible if i haven't been sponsible yet even once"><meta name="twitter:creator" content="@ryanqnorth"><meta name="twitter:image:src" content="https://www.qwantz.com/comics/comic2-5115.png"><meta property="og:url" content="https://www.qwantz.com/index.php?comic=4417" /><meta
#
[KevinMarks] href="https://qwantz.com/rssfeed.php"><meta name="title" content="dinosaur comics"><meta name="description" content="this comic... might be the best comic?"><meta name="keywords" content="dinosaur, comics, utahraptor, t-rex, dromiceiomimus, funny, humour, humor, constrained writing, extremely sexy dinosaurs, wait is that gross"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site"
#
[KevinMarks] property="og:determiner" content="a" /><meta property="og:title" content="Dinosaur Comics!" /><meta property="og:description" content="how can i be REsponsible if i haven't been sponsible yet even once" /><meta property="og:type" content="website" /><meta property="og:image" content="https://www.qwantz.com/comics/comic2-5115.png" /><link rel="stylesheet" type="text/css" href="style19.css" media="screen" title="Default" /><link
#
[KevinMarks] rel="stylesheet" type="text/css" href="/style19.css" media="screen" title="Default" />
#
[KevinMarks] <!--[if lt IE 7]>
#
[KevinMarks] <link rel="stylesheet" type="text/css" href="/iesucks.css" />
#
[KevinMarks] <![endif]-->```
#
[tantek] curl http://qwantz.com/rssfeed.php and LMK what content-type it returns. I'll wait
#
[KevinMarks] you could accept `type="application/rdf+xml"` as a possible feed value and let FeedParser sort it out
#
[KevinMarks] 'cos FeedParser can handle buggered up feeds anyway
#
[snarfed] right. so the answer here is, feed autodiscovery shouldn't work on http://qwantz.com because of that publishing bug?
#
[KevinMarks] `<?xml version="1.0" encoding="UTF-8" ?><?xml-stylesheet type="text/css" href="http://www.qwantz.com/rss.css"?><rss version="2.0">` is what the file says
#
[KevinMarks] given you're throwing the feeds at FeedParser anyway, it will deal with that for you
#
[KevinMarks] I bet there's one person, probably in the SocialWG still doing it just to be contrary
#
[KevinMarks] and 0.91 but not 0.92
#
[KevinMarks] I linked some of this into feed wars recently. markp was very effusive about what a pain it was while he was building feedparser testcases
#
[tantek] I've covered a bunch of this in http://indieweb.org/timeline
#
[KevinMarks] ↩️ oops, 0.9 was RDF, 0.91 removed that
[pfefferle] and gRegor joined the channel
