[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: href "title" attribute
- From: Hideyuki SHIRAI <shirai@xxxxxxxxxxx>
- Date: Sun, 23 Jan 2011 13:00:30 +0900 (JST)
- X-ml-name: emacs-w3m
- X-mail-count: 11497
- References: <87d3oesu2d.fsf@xxxxxxxxx> <20110103.163353.214432641.1BF46D@xxxxxxxxxxx> <878vyc4hc4.fsf@xxxxxxxxx>
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 <= n."
>
> which shows up in the tooltip and echo message as an <. 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)