GNU bug report logs - #39867
26.3; EWW does not show textarea content

Previous Next

Package: emacs;

Reported by: Xu Chunyang <xuchunyang56 <at> gmail.com>

Date: Mon, 2 Mar 2020 15:27:01 UTC

Severity: normal

Tags: fixed

Merged with 43176

Found in versions 26.1, 26.3

Fixed in version 28.1

Done: Robert Pluim <rpluim <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39867 in the body.
You can then email your comments to 39867 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#39867; Package emacs. (Mon, 02 Mar 2020 15:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xu Chunyang <xuchunyang56 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 02 Mar 2020 15:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Xu Chunyang <xuchunyang56 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.3; EWW does not show textarea content
Date: Mon, 2 Mar 2020 23:25:45 +0800
I notice EWW doesn't show the textarea element's contents, for example,
save the following to a.html

    <textarea>HELLO</textarea>

then 'M-x eww-open-file a.html' shows some empty lines without any text.

The following patch fixes the issue for me. And the old code seems
assuming <textarea value='HELLO'></textarea>, which is not correct.

diff -u --label /Users/xcy/src/emacs-mac/lisp/net/eww.el --label
\#\<buffer\ eww.el\> /Users/xcy/src/emacs-mac/lisp/net/eww.el
/var/folders/7f/s191h4q97p90374yw15ssrs00000gn/T/buffer-content-gR2Wn9
--- /Users/xcy/src/emacs-mac/lisp/net/eww.el
+++ #<buffer eww.el>
@@ -1168,7 +1168,7 @@

 (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")))
  end)

Diff finished.  Mon Mar  2 23:21:14 2020




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#39867; Package emacs. (Fri, 17 Jul 2020 14:45:01 GMT) Full text and rfc822 format available.

Message #8 received at 39867 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Xu Chunyang <xuchunyang56 <at> gmail.com>
Cc: 39867 <at> debbugs.gnu.org
Subject: Re: bug#39867: 26.3; EWW does not show textarea content
Date: Fri, 17 Jul 2020 16:44:24 +0200
Xu Chunyang <xuchunyang56 <at> gmail.com> writes:

> I notice EWW doesn't show the textarea element's contents, for example,
> save the following to a.html
>
>     <textarea>HELLO</textarea>
>
> then 'M-x eww-open-file a.html' shows some empty lines without any text.
>
> The following patch fixes the issue for me. And the old code seems
> assuming <textarea value='HELLO'></textarea>, which is not correct.

[...]

> - (value (or (dom-attr dom 'value) ""))
> + (value (or (dom-text dom) ""))

Thanks; applied to Emacs 28.1.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 17 Jul 2020 14:45:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 39867 <at> debbugs.gnu.org and Xu Chunyang <xuchunyang56 <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 17 Jul 2020 14:45:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 15 Aug 2020 11:24:06 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Robert Pluim <rpluim <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 03 Sep 2020 07:21:01 GMT) Full text and rfc822 format available.

Forcibly Merged 39867 43176. Request was from Robert Pluim <rpluim <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 03 Sep 2020 07:21:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 01 Oct 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 205 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.