]> 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:00:50 +0000 (18:00 +1100)
* lisp/net/eww.el (eww-tag-input): Allow sending empty hidden
values (bug#22388).

Copyright-paperwork-exempt: Yes

lisp/net/eww.el

index cb231270b33593d13c0626dc77eb349e74f2c65f..503651c9a38cb8c751a7b2d276c9b7cd1f94460a 100644 (file)
@@ -1139,7 +1139,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))