Re: HTML Custom Elements to help in SRFI writing?
Jakub T. Jankiewicz 12 Aug 2026 15:36 UTC
The problem with Web components is that they are JavaScript feature. So
the page that now works without JavaScript will depends on JS to function.
Web Components are for web applications not websites that should work without
JavaScript.
If you like custom components maybe a better idea would be to create:
XML file and XSLT file that will transform the XML to HTML in The browser. You
can often see this on RSS feeds. Like on my website:
https://jakub.jankiewicz.org/blog/rss.xml
On Tue, 11 Aug 2026 07:00:31 +0400
Artyom Bologov <xxxxxx@aartaka.me> wrote:
> Hi y’all,
>
> There’s this feature of Web Platform called Custom Elements
> <https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements>.
> These allow to define new HTML tags with custom behaviors and syntax. I
> believe that SRFI writers might benefit from some helper tags when
> writing SRFIs. Say, tags to reference other SRFIs or R7RS:
>
> <r7rs-ref>map</r7rs-ref>
> ;; instead of <a
> href="https://standards.scheme.org/r7rs-html5/index.html#map">map</a>
> <srfi-ref num="253">SRFI-253</srfi-ref> ;; instead of <a
> href="https://srfi.schemers.org/srfi-253/srfi-253.html">SRFI 253</a>
>
> These will make it extremely easy to reference things and (I believe)
> will encourage creating actually well-hyperlinked SRFIs.
>
> Adding these elements is safe, because
>
> • They were supported in all major browsers since 2016/2018, which is
> long enough for basically everyone to support. See
> <https://caniuse.com/wf-autonomous-custom-elements>
>
> • Even when these are unsupported, they will be interpreted as their
> contained text. Which, if they are designed right, it entirely safe.
>
> I’m, of course, ready to implement these when necessary.
>
> What do y’all think? Is that a premature optimization?
>
> Best of luck,
--
Jakub T. Jankiewicz, Open-source Developer & Wikipedia Editor
Official Website: https://jakub.jankiewicz.org
Educational Project: https://wikizeit.edu.pl