diff options
| author | Basil L. Contovounesios | 2020-04-22 11:42:17 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2020-05-04 00:40:38 +0100 |
| commit | 310112fdc7448a9297085333fcd4bf4088e634bf (patch) | |
| tree | df9894ba3944674a74fdc5402c42e98c52e20e80 | |
| parent | f5cb5bb8281ee17b013a3b9187e92fda4b1047a9 (diff) | |
| download | emacs-310112fdc7448a9297085333fcd4bf4088e634bf.tar.gz emacs-310112fdc7448a9297085333fcd4bf4088e634bf.zip | |
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).
| -rw-r--r-- | lisp/net/eww.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 811d7c69209..568b96f4d58 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -518,6 +518,10 @@ Currently this means either text/html or application/xhtml+xml." | |||
| 518 | (plist-put eww-data :dom document) | 518 | (plist-put eww-data :dom document) |
| 519 | (let ((inhibit-read-only t) | 519 | (let ((inhibit-read-only t) |
| 520 | (inhibit-modification-hooks t) | 520 | (inhibit-modification-hooks t) |
| 521 | ;; Possibly set by the caller, e.g., `eww-render' which | ||
| 522 | ;; preserves the old URL #target before chasing redirects. | ||
| 523 | (shr-target-id (or shr-target-id | ||
| 524 | (url-target (url-generic-parse-url url)))) | ||
| 521 | (shr-external-rendering-functions | 525 | (shr-external-rendering-functions |
| 522 | (append | 526 | (append |
| 523 | shr-external-rendering-functions | 527 | shr-external-rendering-functions |