]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow sending empty hidden values in eww
authorVasilij Schneidermann <v.schneidermann@gmail.com>
Thu, 4 Feb 2016 04:52:59 +0000 (15:52 +1100)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 4 Feb 2016 07:06:02 +0000 (18:06 +1100)
* lisp/net/eww.el (eww-tag-input): Allow sending empty hidden
values (bug#22388).

Copyright-paperwork-exempt: Yes
(cherry picked from commit 5898da8210af7953e638ddf7821c05260979c3f0)

Backport:

lisp/net/eww.el

index a96241d69f961ce5e5d0e5ad90c0e8b1c3e75847..5e24d4fef4edddf2b0697d1f763c67857346af6f 100644 (file)
@@ -1132,7 +1132,7 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
          (nconc eww-form (list
                           (list 'hidden
                                 :name name
-                                :value (dom-attr dom 'value)))))))
+                                :value (or (dom-attr dom 'value) "")))))))
      (t
       (eww-form-text dom)))
     (unless (= start (point))