[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: rel="next" needs to be unescaped



In [emacs-w3m : No.11932] jidanni@xxxxxxxxxxx wrote:
> On http://en.wikipedia.org/w/index.php?title=Special:Categories&offset=Hf
> page down with SPC runs the command w3m-scroll-up-or-next-url,
> That will get one to
> http://en.wikipedia.org/w/index.php?title=Special:Categories&offset=Hibiscadelphus
> which is an error.
> http://en.wikipedia.org/w/index.php?title=Special:Categories&offset=Hibiscadelphus
> is where it should go!

The attached patch helps, though I'm not sure it is the right
fix and not causes another problem on other sites.  Could anyone
review it?
--- w3m.el~	2012-11-19 08:43:51.000000000 +0000
+++ w3m.el	2012-12-05 10:41:03.181480200 +0000
@@ -3545,6 +3545,8 @@
 				  (rel :case-ignore) (hseq :integer))
 	(unless name
 	  (setq name id))
+	(when href
+	  (setq href (w3m-decode-entities-string href)))
 	(when rel
 	  (setq rel (split-string rel))
 	  (cond