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

Re: href "title" attribute



From: Kevin Ryde <user42@xxxxxxxxxx> said
Subject: [emacs-w3m:11495] Re: href "title" attribute
Message-ID: <878vyc4hc4.fsf@xxxxxxxxx>
Date: Sun, 23 Jan 2011 11:03:07 +1100

>     http://oeis.org/A000040
> 
> the link to "A000720" has
> 
>     title="pi(n), the number of primes &lt;= n."
> 
> which shows up in the tooltip and echo message as an &lt;.  I think a
> "<" is intended, and which mozilla for instance shows.  Are entities
> decoded in attribute values?

Thank you for your report. I fixed it in CVS HEAD as follows;

--- w3m.el	23 Jan 2011 00:41:29 -0000	1.1516
+++ w3m.el	23 Jan 2011 03:59:50 -0000
@@ -3608,9 +3608,11 @@
 						 'w3m-arrived-anchor
 					       'w3m-anchor))
 	    (if title
-		(setq bhhref (concat (w3m-decode-anchor-string title)
-				    "\n"
-				    (w3m-url-readable-string href)))
+		(progn
+		  (setq title (w3m-decode-entities-string title))
+		  (setq bhhref (concat (w3m-decode-anchor-string title)
+				       "\n"
+				       (w3m-url-readable-string href))))
 	      (setq bhhref (w3m-url-readable-string href)))
 	    (w3m-add-text-properties start end
 				     (list 'w3m-href-anchor href

-- 
Hideyuki SHIRAI (mailto:shirai@xxxxxxxxxxx)