Re: link anchor with % escape

From: Kevin Ryde <user42_kevin@xxxxxxxxxxxx>

Date: Tue, 23 Dec 2014 20:59:30 +1100

X-ml-name: emacs-w3m

X-mail-count: 12395

References: <87zjalh2eu.fsf@xxxxxxxxx> <b4mioh7m5lv.fsf@xxxxxxx>

Katsumi Yamaoka <yamaoka@xxxxxxx> writes:
(B>
(B> I don't know whether such a form is valid or not, but confirmed
(B> at least Firefox supports it. If it happens for only the name
(B> portion of a url, we can make `w3m-search-name-anchor' search
(B> for both "name" and (w3m-url-decode-string "name").
(B
(BThere's a bit in the urls RFC-3986 on normalizing to test equality. Its
(Bsection 6.2.2.2 recommends decoding unreserved chars, but I would think
(Bthat after splitting a url into path, fragment, etc parts, that equality
(Bof the fragment could helpfully have both definition and target decoded
(B-- or if not decoded then normalized the same way. Does w3m itself do
(Banything like that? Perhaps it would be as easy as asking it for
(Bnormalized forms.
(B
(B(Decoding unreserved chars which the rfc says would do my sample, but
(Bnot the whizzytex failing case where it's a "/" encoded and not.)