Re: [w3ctag/design-reviews] HTML attribute for template URLs? (Discussion #1123)

It's worth noting that HTML has a (very old, not great) precedent for this with [`registerProtocolHandler()`](https://html.spec.whatwg.org/#custom-handlers). The processing model is: parse the input as a URL string with some extra validation, then serialize it, then replace the first instance of the string "`%s`" with the passed-in value, then re-parse as a URL.

Hopefully nobody else does this! But if any guidelines get written up here, it's probably worth pointing out as a precedent.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/discussions/1123#discussioncomment-13869247
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/repo-discussions/1123/comments/13869247@github.com>

Received on Thursday, 24 July 2025 00:44:47 UTC