mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
eww: don't add keymap to <a> without href
* lisp/net/eww.el (eww-tag-a): Only add keymap if the href attribute is present. (Bug#44147)
This commit is contained in:
parent
f6d1389796
commit
b572308fbf
1 changed files with 6 additions and 5 deletions
|
|
@ -695,11 +695,12 @@ Currently this means either text/html or application/xhtml+xml."
|
|||
(eww-handle-link dom)
|
||||
(let ((start (point)))
|
||||
(shr-tag-a dom)
|
||||
(put-text-property start (point)
|
||||
'keymap
|
||||
(if (mm-images-in-region-p start (point))
|
||||
eww-image-link-keymap
|
||||
eww-link-keymap))))
|
||||
(if (dom-attr dom 'href)
|
||||
(put-text-property start (point)
|
||||
'keymap
|
||||
(if (mm-images-in-region-p start (point))
|
||||
eww-image-link-keymap
|
||||
eww-link-keymap)))))
|
||||
|
||||
(defun eww--limit-string-pixelwise (string pixels)
|
||||
(if (not pixels)
|
||||
|
|
|
|||
Loading…
Reference in a new issue