projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63f9d9a
)
Fix default value in checkboxes in eww
author
Nicolas Graner
<nicolas.graner@universite-paris-saclay.fr>
Mon, 21 Sep 2020 11:57:31 +0000
(13:57 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Mon, 21 Sep 2020 12:15:39 +0000
(14:15 +0200)
* lisp/net/eww.el (eww-submit): Checked checkboxes need a default
value (bug#43542).
Copyright-paperwork-exempt: yes
lisp/net/eww.el
patch
|
blob
|
history
diff --git
a/lisp/net/eww.el
b/lisp/net/eww.el
index 8918be0d2e382e781cdcefcade4f75941427975f..1ed87c66250b4b4c7aa737af6a480d9b7ae0972b 100644
(file)
--- a/
lisp/net/eww.el
+++ b/
lisp/net/eww.el
@@
-1634,7
+1634,7
@@
See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
(cond
((member (plist-get input :type) '("checkbox" "radio"))
(when (plist-get input :checked)
-
(push (cons name (plist-get input :value
))
+
(push (cons name (or (plist-get input :value) "on"
))
values)))
((equal (plist-get input :type) "file")
(when-let ((file (plist-get input :filename)))