Fix rendering of title-less <abbr> tags in shr
* lisp/net/shr.el (shr-tag-abbr): Render <abbr> tags that have no title (bug#51525).
This commit is contained in:
parent
e170a31c57
commit
610680a8d3
1 changed files with 6 additions and 7 deletions
|
@ -1574,15 +1574,14 @@ ones, in case fg and bg are nil."
|
|||
(shr-urlify (or shr-start start) (shr-expand-url url) title))))
|
||||
|
||||
(defun shr-tag-abbr (dom)
|
||||
(when-let* ((title (dom-attr dom 'title))
|
||||
(start (point)))
|
||||
(let ((title (dom-attr dom 'title))
|
||||
(start (point)))
|
||||
(shr-generic dom)
|
||||
(shr-add-font start (point) 'shr-abbreviation)
|
||||
(add-text-properties
|
||||
start (point)
|
||||
(list
|
||||
'help-echo title
|
||||
'mouse-face 'highlight))))
|
||||
(when title
|
||||
(add-text-properties start (point)
|
||||
(list 'help-echo title
|
||||
'mouse-face 'highlight)))))
|
||||
|
||||
(defun shr-tag-acronym (dom)
|
||||
;; `acronym' is deprecated in favor of `abbr'.
|
||||
|
|
Loading…
Add table
Reference in a new issue