]> git.eshelyaron.com Git - emacs.git/commitdiff
; * test/lisp/net/shr-tests.el (shr-test/zoom-image): Fix <img> (bug#79041).
authorEli Zaretskii <eliz@gnu.org>
Thu, 17 Jul 2025 16:34:50 +0000 (19:34 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 11:57:17 +0000 (13:57 +0200)
(cherry picked from commit 462a541db904405ede8446c48ba0c71ad41c544d)

test/lisp/net/shr-tests.el

index 363cd144e8f3aee6026ec1dd1cd7ea94ff414e4f..a931d07a16310bd7bc32e8be54b6c252d556e530 100644 (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)