64°F

Aaron Parecki

  • Articles
  • Notes
  • Photos
  • Day 2: Handling URLs with Fragment IDs #100DaysOfIndieWeb

    December 22, 2016

    Earlier this year when I launched XRay, I connected Loqi the IRC bot to it so that we would get inline IRC text previews when people linked to web pages in IRC. XRay works by finding an h-entry on the page, and getting the content and author information from it. Here's what it normally looks like in IRC.

    Loqi fetches the URL and finds the h-entry, and posts a summary of it in IRC. This works great most of the time. However, when people started posting URLs to things with fragment IDs (such as the chat log permalinks themselves), then Loqi would report the name of the page rather than the summary of whatever was inside the fragment ID.

    Today I updated XRay (issue #15) to handle URLs with fragment IDs. If the URL has a fragment, then it looks for an HTML element with that ID and hands off that subtree to the Microformats parser instead of parsing the whole page.

    Now the Loqi summaries work for URLs with fragments!

    Since this is now part of XRay, that means it's also active for anything else that uses XRay! This includes when webmention.io parses comments, when Quill expands reply contexts, and more!

    Portland, Oregon
    Thu, Dec 22, 2016 8:47am -08:00 #100daysofindieweb #indieweb #xray #quill #microformats
    2 likes 1 mention
    • Sebastiaan Andeweg
    • ChrisAldrich

    Other Mentions

    • 100 Days of IndieWeb aaronparecki.com/tag/100daysofindieweb
      Day 2: Handling URLs with Fragment IDs #100DaysOfIndieWeb: aaronparecki.com/2016/12/22/5/1…
      Fri, Dec 23, 2016 4:45pm +00:00 (via brid-gy.appspot.com)
Posted in /articles using quill.p3k.io

Hi, I'm Aaron Parecki, Director of Identity Standards at Okta, and co-founder of IndieWebCamp. I maintain oauth.net, write and consult about OAuth, and participate in the OAuth Working Group at the IETF. I also help people learn about video production and livestreaming. (detailed bio)

I've been tracking my location since 2008 and I wrote 100 songs in 100 days. I've spoken at conferences around the world about owning your data, OAuth, quantified self, and explained why R is a vowel. Read more.

  • Director of Identity Standards at Okta
  • IndieWebCamp Founder
  • OAuth WG Editor
  • OpenID Board Member

  • 🎥 YouTube Tutorials and Reviews
  • 🏠 We're building a triplex!
  • ⭐️ Life Stack
  • ⚙️ Home Automation
  • All
  • Articles
  • Bookmarks
  • Notes
  • Photos
  • Replies
  • Reviews
  • Trips
  • Videos
  • Contact
© 1999-2025 by Aaron Parecki. Powered by p3k. This site supports Webmention.
Except where otherwise noted, text content on this site is licensed under a Creative Commons Attribution 3.0 License.
IndieWebCamp Microformats Webmention W3C HTML5 Creative Commons
WeChat ID
aaronpk_tv