(eww-display-html): Don't pop the *eww* buffer.
(eww-display-raw): Ditto.
(eww-display-image): Ditto.
+ (eww-follow-link): Make going to #targets in the page work again.
2014-11-23 Ivan Shmakov <ivan@siamics.net>
(list
'base (list (cons 'href url))
(progn
- (unless (eq charset encode)
+ (when (or (and encode
+ (not (eq charset encode)))
+ (not (eq charset 'utf-8)))
(condition-case nil
(decode-coding-region (point) (point-max)
(or encode charset))
;; This is a #target url in the same page as the current one.
((and (url-target (url-generic-parse-url url))
(eww-same-page-p url (plist-get eww-data :url)))
- (eww-save-history)
- (eww-display-html 'utf-8 url (plist-get eww-data :url)
- nil (current-buffer)))
+ (let ((dom (plist-get eww-data :dom)))
+ (eww-save-history)
+ (eww-display-html 'utf-8 url dom nil (current-buffer))))
(t
(eww-browse-url url)))))