; * test/lisp/net/shr-tests.el (shr-test/zoom-image): Fix <img> (bug#79041).

This commit is contained in:
Eli Zaretskii 2025-07-17 19:34:50 +03:00
parent ae560ae11c
commit 462a541db9

View file

@ -145,8 +145,8 @@ settings, then once more for each (OPTION . VALUE) pair.")
(dolist (alt '(nil "" "nothing to see here"))
(with-temp-buffer
(ert-info ((format "image with alt=%S" alt))
(let ((attrs (if alt (format " alt=\"%s\"" alt) "")))
(insert (format "<img src=\"%s\" %s" image-url attrs)))
(let ((attrs (if alt (format " alt=\"%s\">" alt) ">")))
(insert (format "<img src=\"%s\"%s" image-url attrs)))
(cl-letf* (;; Pretend we're a graphical display.
((symbol-function 'display-graphic-p) #'always)
((symbol-function 'url-queue-retrieve)