From: Alexis <flexibeast@gmail.com>
To: 刘李进 <liulijin@interrcs.com>
Cc: 22075@debbugs.gnu.org
Subject: bug#22075: 24.5; [EWW] eww handle link anchor not correctly
Date: Sat, 05 Dec 2015 15:08:19 +1100 [thread overview]
Message-ID: <87zixp4jws.fsf@gmail.com> (raw)
In-Reply-To: <1110F914-88A2-4020-816E-2C965867E4B4@interrcs.com>
刘李进 <liulijin@interrcs.com> writes:
> I found that the eww seems handle link anchor not
> correctly. Reproduce step:
>
> 1. download the html file in attachment (comes from dash lua5.1
> docset). 2. eww open the link:
> file:///path-to/file#//apple_ref/func/string%2Esub 3. eww cannot
> navigate to the correct position. 4. open the same link in
> chrome/safari, works fine.
i'm able to reproduce this on 24.5.3 manually compiled on Debian
Jessie x86_64.
`eww' eventually calls `eww-display-html', which contains:
(cond
(point
(goto-char point))
(shr-target-id
(goto-char (point-min)) (let ((point
(next-single-property-change
(point-min) 'shr-target-id)))
(when point
(goto-char point))))
Stepping through this, `shr-target-id' correctly contains
"//apple-ref/func/string%2Esub", so that `cond' branch is
taken. However, the call to `next-single-property-change' returns
nil, suggesting that the relevant anchor hasn't been properly
propertised, resulting in the `when point' test failing.
next prev parent reply other threads:[~2015-12-05 4:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 15:54 bug#22075: 24.5; [EWW] eww handle link anchor not correctly 刘李进
2015-12-05 4:08 ` Alexis [this message]
2015-12-25 5:25 ` Lars Ingebrigtsen
2015-12-29 0:53 ` 刘李进
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zixp4jws.fsf@gmail.com \
--to=flexibeast@gmail.com \
--cc=22075@debbugs.gnu.org \
--cc=liulijin@interrcs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.