mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-30 09:00:31 -08:00
Fix eww-follow-link on URLs with #target
* lisp/net/eww.el (eww-display-html): Ensure shr-target-id is set as callers depend on this (bug#28441, bug#40532).
This commit is contained in:
parent
f5cb5bb828
commit
310112fdc7
1 changed files with 4 additions and 0 deletions
|
|
@ -518,6 +518,10 @@ Currently this means either text/html or application/xhtml+xml."
|
|||
(plist-put eww-data :dom document)
|
||||
(let ((inhibit-read-only t)
|
||||
(inhibit-modification-hooks t)
|
||||
;; Possibly set by the caller, e.g., `eww-render' which
|
||||
;; preserves the old URL #target before chasing redirects.
|
||||
(shr-target-id (or shr-target-id
|
||||
(url-target (url-generic-parse-url url))))
|
||||
(shr-external-rendering-functions
|
||||
(append
|
||||
shr-external-rendering-functions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue