angelo, ur5us, ur5us_, gRegor, janboddez, [dave], [pfefferle], [tantek], [tw2113_Slack_], IWSlackGateway, ehmry, [snarfed], [manton] and [KevinMarks] joined the channel
#[tantek]I found a use-case for keeping *some* relative links relative in e-content: footnotes
[hollie] joined the channel
#[tantek]e.g. an inline footnote fragment link to its note expansion elsewhere (near the bottom) of the e-content, which then may have a fragment link back to the inline reference. that would ideally still "work" as fragment links to scroll up/down into view accordingly, even if that e-content made its way into a feed reader, or say Mastodon
#[KevinMarks]that seems doable as a parsing heuristic
#[tantek]really funny to be solving these two different (seemingly unrelated) problems at the same and find a connection
#[tantek]also, fragement-only links inside an e-content can be reasonably expected to reference other things in the e-content, in general (whether footnotes or others), so keeping them fragment-only makes sense
#tantekedited /microformats2-parsing (+103) "editorial: s/whitespace/spaces, and add note in HTML parsing rules clarifying existing meaning of 'spaces' meaning HTML collapsible blank spaces (which is what’s implemented)" (view diff)
#tantekedited /microformats2-parsing (+195) "Proposed for e- parsing, normalized absolute URLs in all URL attributes except those with fragment only values, to solve issue 38 and allow for relative links to *inside* e-* properties to keep working in embedded use-cases" (view diff)
#gRegorHm, what if the reader has 2+ posts with the same fragment? You were talking about making yours something like #note-{number} right? so they would repeat among different posts.
#[tantek]each of my posts will have unique prefix params to solve that problem, probably based on the newbase60 compression of the date and the post number
#gRegorFrom the parser impl perspective, it seems more difficult to only make some links absolute. Not a lot more difficult, but some amount.
#[tantek]a little yeah you have to add an if check for the attribute starting with '#'
#[tantek]and not just a reader having 2+ posts, this needs to work on my home page 🙂
#[KevinMarks]it is a bit odd when the footnotes are actually links, yes
#gRegorBut really I've only experienced reading your posts in a reader
#[tantek]I think it's distracting if trying to view a footnote changes your reading context
#[tantek]this is kinda new territory as I don't think many (any?) blogs have supported this sort of behavior in readers etc.
#[tantek]so some amount of expectation changes can be expected. I like that the small unicode number hints at, this is a very small link and may just do something a little different than clicking a whole big hyperlink URL or word/phrase which will navigate you
#[snarfed]so the tradeoff seems to be, pro: keeping fragment links within the current embedding is nicer than loading the separate original page
#[snarfed]con: that experience is going to be brittle and inconsistent in practice, due to sanitization varying widely, fragment destinations hidden in collapsed longer posts, etc
#[snarfed]given that tradeoff, I think I lightly lean toward fully qualifying fragment links