Re: Proposal to add HTML class attributes to SRFIs to aid machine-parsing
Ciprian Dorin Craciun 07 Mar 2019 20:25 UTC
On Thu, Mar 7, 2019 at 10:20 PM Lassi Kortela <xxxxxx@lassi.io> wrote:
> I agree. Direct links would be really nice. I wonder if the HTTP URL
> or HTML specs place any limitations on text that can appear in the
> IDs. Scheme symbols use many weird characters like ? ! < > = + * /
Unfortunately the `id` and `href` attribute doesn't allow for such characters.
Therefore in my documentation generator I've encoded all characters
that are not `[a-zA-Z0-9-]` into `_XX` where `XX` is the hexcode of
that character. (Note that also `_` is encoded as `_XX`, thus the
encoding is completely reversible.)
Ciprian.