[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 92609aa: Fix <textarea> default texts in eww

From: Lars Ingebrigtsen
Subject: master 92609aa: Fix <textarea> default texts in eww
Date: Fri, 17 Jul 2020 10:44:12 -0400 (EDT)

branch: master
commit 92609aad38e5ec6175078b52bf6ecc5653a84170
Author: Xu Chunyang <xuchunyang56@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix <textarea> default texts in eww
    * lisp/net/eww.el (eww-tag-textarea): <textarea> default text
    comes from the contents, not a value attribute (bug#39867).
 lisp/net/eww.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 46cf60b..5fc0b08 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1260,7 +1260,7 @@ See URL 
 (defun eww-tag-textarea (dom)
   (let ((start (point))
-       (value (or (dom-attr dom 'value) ""))
+        (value (or (dom-text dom) ""))
        (lines (string-to-number (or (dom-attr dom 'rows) "10")))
        (width (string-to-number (or (dom-attr dom 'cols) "10")))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]