]> git.eshelyaron.com Git - emacs.git/commitdiff
Better support for 'textarea' and 'select' tags in EWW
authorNicolas Graner <nicolas@graner.name>
Wed, 2 Nov 2022 21:28:45 +0000 (22:28 +0100)
committerEli Zaretskii <eliz@gnu.org>
Thu, 10 Nov 2022 09:45:40 +0000 (11:45 +0200)
* lisp/net/eww.el (eww-tag-textarea, eww-tag-select): Don't miss
'textarea' and 'select' tags.  (Bug#58973)

lisp/net/eww.el

index 414de931c4a75e7e0c50c257cd584e94c191ce66..3799ef96e845ef50ec0a9b53d0aab933250c7567 100644 (file)
@@ -1596,7 +1596,8 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
                       (list :eww-form eww-form
                             :value value
                             :type "textarea"
-                            :name (dom-attr dom 'name)))))
+                            :name (dom-attr dom 'name)))
+    (put-text-property start (1+ start) 'shr-tab-stop t)))
 
 (defun eww-tag-input (dom)
   (let ((type (downcase (or (dom-attr dom 'type) "text")))
@@ -1660,7 +1661,8 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
       (add-face-text-property start (point) 'eww-form-select)
       (put-text-property start (point) 'keymap eww-select-map)
       (unless (= start (point))
-       (put-text-property start (1+ start) 'help-echo "select field"))
+       (put-text-property start (1+ start) 'help-echo "select field")
+       (put-text-property start (1+ start) 'shr-tab-stop t))
       (shr-ensure-paragraph))))
 
 (defun eww-select-display (select)