Debian Bug report logs - #136810
w3m: support for the <button> tag (HTML 4.01)

version graph

Package: w3m; Maintainer for w3m is Tatsuya Kinoshita <tats@debian.org>; Source for w3m is src:w3m (PTS, buildd, popcon).

Reported by: Jacobo Tarrio <jtarrio@trasno.net>

Date: Mon, 4 Mar 2002 18:03:06 UTC

Severity: wishlist

Tags: patch

Found in version 0.2.5.1-1

Fixed in version w3m/0.5.2-10

Done: Tatsuya Kinoshita <tats@debian.org>

Bug is archived. No further changes may be made.

Forwarded to http://mi.med.tohoku.ac.jp/~satodai/w3m-dev/201008.month/4394.html

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>, w3m@packages.qa.debian.org:
Bug#136810; Package w3m. (full text, mbox, link).


Acknowledgement sent to Jacobo Tarrio <jtarrio@trasno.net>:
New Bug report received and forwarded. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>, w3m@packages.qa.debian.org. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Jacobo Tarrio <jtarrio@trasno.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: w3m: support for the <button> tag (HTML 4.01)
Date: Mon, 04 Mar 2002 19:00:09 +0100
Package: w3m
Version: 0.2.5.1-1
Severity: wishlist

 I have found that w3m doesn't recognize/support the <button> element as
defined in HTML 4.01 http://www.w3.org/TR/html401/interact/forms.html#h-17.5

 It would be nice if it was supported; I wouldn't need to use lynx again ;)

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux elvin 2.4.17 #1 Sat Dec 22 12:34:32 CET 2001 i686
Locale: LANG=gl_ES, LC_CTYPE=gl_ES

Versions of packages w3m depends on:
ii  libc6                    2.2.5-3         GNU C Library: Shared libraries an
ii  libgc6                   1:6.0-3         Conservative garbage collector for
ii  libgpmg1                 1.19.6-10       General Purpose Mouse Library [lib
ii  libncurses5              5.2.20020112a-5 Shared libraries for terminal hand
ii  zlib1g                   1:1.1.3-19      compression library - runtime




Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#136810; Package w3m. (Thu, 25 Sep 2008 06:21:02 GMT) (full text, mbox, link).


Acknowledgement sent to Trent W. Buck <trentbuck@gmail.com>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (Thu, 25 Sep 2008 06:21:02 GMT) (full text, mbox, link).


Message #10 received at 136810@bugs.debian.org (full text, mbox, reply):

From: Trent W. Buck <trentbuck@gmail.com>
To: control@bugs.debian.org
Cc: 136810@bugs.debian.org
Subject: bug 136810 is forwarded to http://sourceforge.net/tracker/index.php?func=detail&aid=1942190&group_id=39518&atid=425439
Date: Thu, 25 Sep 2008 16:19:32 +1000
# Automatically generated email from bts, devscripts version 2.10.35
# This was also reported upstream.
forwarded 136810 http://sourceforge.net/tracker/index.php?func=detail&aid=1942190&group_id=39518&atid=425439





Noted your statement that Bug has been forwarded to http://sourceforge.net/tracker/index.php?func=detail&aid=1942190&group_id=39518&atid=425439. Request was from Trent W. Buck <trentbuck@gmail.com> to control@bugs.debian.org. (Thu, 25 Sep 2008 06:21:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#136810; Package w3m. (Tue, 30 Sep 2008 00:03:02 GMT) (full text, mbox, link).


Acknowledgement sent to trentbuck@gmail.com (Trent W. Buck):
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (Tue, 30 Sep 2008 00:03:02 GMT) (full text, mbox, link).


Message #17 received at 136810@bugs.debian.org (full text, mbox, reply):

From: trentbuck@gmail.com (Trent W. Buck)
To: 136810@bugs.debian.org
Subject: Re: [emacs-w3m:10279] Re: <button> on forms
Date: Tue, 30 Sep 2008 10:01:07 +1000
I found this on the mailing list.  I haven't tried it yet.

From: Tetsurou Okazaki <okazaki@be.to>
Subject: [emacs-w3m:10279] Re: <button> on forms
Newsgroups: gmane.emacs.w3m
To: emacs-w3m@namazu.org
Date: Wed, 02 Jul 2008 14:05:57 +1000
Reply-To: emacs-w3m@namazu.org

At Tue, 01 Jul 2008 20:48:22 +0800,
jidanni@jidanni.org wrote:
> 
> Can anybody submit Wordpress comments?
> E.g., on http://pinyin.info/news/2006/chinese-literacy/
> there is
> <button name="submit" type="submit" id="submit" tabindex="5">Submit Comment</button>
> 
> Lynx and firefox makes it clickable, but emacs-w3m and I am afraid w3m
> too, just show it as text.
> 

Try the attached patch to the current CVS HEAD of the w3m source tree.

-- 
Tetsurou Okazaki

Obtained from: http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200203.month/3100.html

Index: tagtable.tab
===================================================================
RCS file: /cvsroot/w3m/w3m/tagtable.tab,v
retrieving revision 1.12
diff -u -r1.12 tagtable.tab
--- tagtable.tab	10 Dec 2006 11:06:12 -0000	1.12
+++ tagtable.tab	2 Jul 2008 03:21:05 -0000
@@ -87,6 +87,8 @@
 form		HTML_FORM
 /form		HTML_N_FORM
 input		HTML_INPUT
+button		HTML_BUTTON
+/button		HTML_N_BUTTON
 textarea	HTML_TEXTAREA
 /textarea	HTML_N_TEXTAREA
 select		HTML_SELECT
Index: table.c
===================================================================
RCS file: /cvsroot/w3m/w3m/table.c,v
retrieving revision 1.55
diff -u -r1.55 table.c
--- table.c	23 May 2007 13:07:44 -0000	1.55
+++ table.c	2 Jul 2008 03:21:05 -0000
@@ -2873,6 +2873,14 @@
 	tmp = process_input(tag);
 	feed_table1(tbl, tmp, mode, width);
 	break;
+    case HTML_BUTTON:
+	tmp = process_button(tag);
+	feed_table1(tbl, tmp, mode, width);
+	break;
+    case HTML_N_BUTTON:
+	tmp = process_n_button();
+	feed_table1(tbl, tmp, mode, width);
+	break;
     case HTML_SELECT:
 	tmp = process_select(tag);
 	if (tmp)
Index: proto.h
===================================================================
RCS file: /cvsroot/w3m/w3m/proto.h,v
retrieving revision 1.101
diff -u -r1.101 proto.h
--- proto.h	7 Apr 2006 13:21:12 -0000	1.101
+++ proto.h	2 Jul 2008 03:21:05 -0000
@@ -203,6 +203,8 @@
 extern Str process_img(struct parsed_tag *tag, int width);
 extern Str process_anchor(struct parsed_tag *tag, char *tagbuf);
 extern Str process_input(struct parsed_tag *tag);
+extern Str process_button(struct parsed_tag *tag);
+extern Str process_n_button(void);
 extern Str process_select(struct parsed_tag *tag);
 extern Str process_n_select(void);
 extern void feed_select(char *str);
Index: html.h
===================================================================
RCS file: /cvsroot/w3m/w3m/html.h,v
retrieving revision 1.29
diff -u -r1.29 html.h
--- html.h	23 May 2007 12:01:43 -0000	1.29
+++ html.h	2 Jul 2008 03:21:05 -0000
@@ -202,6 +202,8 @@
 #define HTML_N_I	110
 #define HTML_STRONG	111
 #define HTML_N_STRONG	112
+#define HTML_BUTTON	113
+#define HTML_N_BUTTON	114
 
    /* pseudo tag */
 #define HTML_SELECT_INT     120
Index: html.c
===================================================================
RCS file: /cvsroot/w3m/w3m/html.c,v
retrieving revision 1.30
diff -u -r1.30 html.c
--- html.c	19 Apr 2007 12:00:38 -0000	1.30
+++ html.c	2 Jul 2008 03:21:05 -0000
@@ -56,6 +56,9 @@
     ATTR_CORE
 };
 #define MAXA_INPUT      MAXA_CORE + 12
+unsigned char ALST_BUTTON[] =
+    { ATTR_TYPE, ATTR_VALUE, ATTR_NAME, ATTR_CORE };
+#define MAXA_BUTTON      MAXA_CORE + 3
 unsigned char ALST_TEXTAREA[] =
     { ATTR_COLS, ATTR_ROWS, ATTR_NAME, ATTR_READONLY, ATTR_CORE };
 #define MAXA_TEXTAREA   MAXA_CORE + 4
@@ -235,8 +238,8 @@
     {"/i", NULL, 0, TFLG_END},	/*  110 HTML_N_I */
     {"strong", NULL, 0, 0},		/* 111 HTML_STRONG */
     {"/strong", NULL, 0, TFLG_END},	/* 112 HTML_N_STRONG */
-    {NULL, NULL, 0, 0},		/* 113 Undefined       */
-    {NULL, NULL, 0, 0},		/* 114 Undefined       */
+    {"button", ALST_BUTTON, MAXA_BUTTON, 0},		/* 113 HTML_BUTTON       */
+    {"/button", NULL, 0, TFLG_END},		/* 114 HTML_N_BUTTON       */
     {NULL, NULL, 0, 0},		/* 115 Undefined       */
     {NULL, NULL, 0, 0},		/* 116 Undefined       */
     {NULL, NULL, 0, 0},		/* 117 Undefined       */
Index: file.c
===================================================================
RCS file: /cvsroot/w3m/w3m/file.c,v
retrieving revision 1.254
diff -u -r1.254 file.c
--- file.c	23 May 2007 15:06:05 -0000	1.254
+++ file.c	2 Jul 2008 03:21:06 -0000
@@ -3704,6 +3704,63 @@
 }
 
 Str
+process_button(struct parsed_tag *tag)
+{
+    Str tmp = NULL;
+    char *p, *q, *r, *qq = NULL;
+    int qlen, v;
+
+    if (cur_form_id < 0) {
+	char *s = "<form_int method=internal action=none>";
+	tmp = process_form(parse_tag(&s, TRUE));
+    }
+    if (tmp == NULL)
+	tmp = Strnew();
+
+    p = "submit";
+    parsedtag_get_value(tag, ATTR_TYPE, &p);
+    q = NULL;
+    parsedtag_get_value(tag, ATTR_VALUE, &q);
+    r = "";
+    parsedtag_get_value(tag, ATTR_NAME, &r);
+
+    v = formtype(p);
+    if (v == FORM_UNKNOWN)
+	return NULL;
+
+    if (!q) {
+	switch (v) {
+	case FORM_INPUT_SUBMIT:
+	case FORM_INPUT_BUTTON:
+	    q = "SUBMIT";
+	    break;
+	case FORM_INPUT_RESET:
+	    q = "RESET";
+	    break;
+	}
+    }
+    if (q) {
+	qq = html_quote(q);
+	qlen = strlen(q);
+    }
+
+    /* Strcat_charp(tmp, "<pre_int>"); */
+    Strcat(tmp, Sprintf("<input_alt hseq=\"%d\" fid=\"%d\" type=%s "
+			"name=\"%s\" value=\"%s\">",
+			cur_hseq++, cur_form_id, p, html_quote(r), qq));
+    return tmp;
+}
+
+Str
+process_n_button(void)
+{
+    Str tmp = Strnew();
+    Strcat_charp(tmp, "</input_alt>");
+    /* Strcat_charp(tmp, "</pre_int>"); */
+    return tmp;
+}
+
+Str
 process_select(struct parsed_tag *tag)
 {
     Str tmp = NULL;
@@ -4927,6 +4984,18 @@
 	if (tmp)
 	    HTMLlineproc1(tmp->ptr, h_env);
 	return 1;
+    case HTML_BUTTON:
+	close_anchor(h_env, obuf);
+	tmp = process_button(tag);
+	if (tmp)
+	    HTMLlineproc1(tmp->ptr, h_env);
+	return 1;
+    case HTML_N_BUTTON:
+	close_anchor(h_env, obuf);
+	tmp = process_n_button();
+	if (tmp)
+	    HTMLlineproc1(tmp->ptr, h_env);
+	return 1;
     case HTML_SELECT:
 	close_anchor(h_env, obuf);
 	tmp = process_select(tag);





Information forwarded to debian-bugs-dist@lists.debian.org, Tatsuya Kinoshita <tats@debian.org>:
Bug#136810; Package w3m. (Tue, 20 Jul 2010 12:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to d+deb@vdr.jp:
Extra info received and forwarded to list. Copy sent to Tatsuya Kinoshita <tats@debian.org>. (Tue, 20 Jul 2010 12:09:04 GMT) (full text, mbox, link).


Message #22 received at 136810@bugs.debian.org (full text, mbox, reply):

From: d+deb@vdr.jp
To: control@bugs.debian.org
Cc: 136810@bugs.debian.org
Subject: Re: w3m: support for the <button> tag (HTML 4.01)
Date: Tue, 20 Jul 2010 21:04:45 +0900
[Message part 1 (text/plain, inline)]
tags 136810 + patch
thanks
-- 
Regards,
	dai

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E
[signature.asc (application/pgp-signature, inline)]

Added tag(s) patch. Request was from d+deb@vdr.jp to control@bugs.debian.org. (Tue, 20 Jul 2010 12:09:05 GMT) (full text, mbox, link).


Unset Bug forwarded-to-address Request was from d+deb@vdr.jp to control@bugs.debian.org. (Fri, 23 Jul 2010 18:27:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Tatsuya Kinoshita <tats@debian.org>:
Bug#136810; Package w3m. (Fri, 13 Aug 2010 08:18:02 GMT) (full text, mbox, link).


Acknowledgement sent to d+deb@vdr.jp:
Extra info received and forwarded to list. Copy sent to Tatsuya Kinoshita <tats@debian.org>. (Fri, 13 Aug 2010 08:18:03 GMT) (full text, mbox, link).


Message #31 received at 136810@bugs.debian.org (full text, mbox, reply):

From: d+deb@vdr.jp
To: control@bugs.debian.org
Cc: 136810@bugs.debian.org
Subject: Re: [patch] support for the <button> tag (HTML 4.01)
Date: Fri, 13 Aug 2010 17:14:30 +0900
[Message part 1 (text/plain, inline)]
forwarded 136810 http://mi.med.tohoku.ac.jp/~satodai/w3m-dev/201008.month/4394.html
thanks
-- 
Regards,
	dai

GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E
[signature.asc (application/pgp-signature, inline)]

Set Bug forwarded-to-address to 'http://mi.med.tohoku.ac.jp/~satodai/w3m-dev/201008.month/4394.html'. Request was from d+deb@vdr.jp to control@bugs.debian.org. (Fri, 13 Aug 2010 08:18:04 GMT) (full text, mbox, link).


Reply sent to Tatsuya Kinoshita <tats@debian.org>:
You have taken responsibility. (Fri, 15 Oct 2010 16:45:08 GMT) (full text, mbox, link).


Notification sent to Jacobo Tarrio <jtarrio@trasno.net>:
Bug acknowledged by developer. (Fri, 15 Oct 2010 16:45:08 GMT) (full text, mbox, link).


Message #38 received at 136810-close@bugs.debian.org (full text, mbox, reply):

From: Tatsuya Kinoshita <tats@debian.org>
To: 136810-close@bugs.debian.org
Subject: Bug#136810: fixed in w3m 0.5.2-10
Date: Fri, 15 Oct 2010 16:43:40 +0000
Source: w3m
Source-Version: 0.5.2-10

We believe that the bug you reported is fixed in the latest version of
w3m, which is due to be installed in the Debian FTP archive:

w3m-img_0.5.2-10_i386.deb
  to main/w/w3m/w3m-img_0.5.2-10_i386.deb
w3m_0.5.2-10.debian.tar.gz
  to main/w/w3m/w3m_0.5.2-10.debian.tar.gz
w3m_0.5.2-10.dsc
  to main/w/w3m/w3m_0.5.2-10.dsc
w3m_0.5.2-10_i386.deb
  to main/w/w3m/w3m_0.5.2-10_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 136810@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Tatsuya Kinoshita <tats@debian.org> (supplier of updated w3m package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 16 Oct 2010 00:59:32 +0900
Source: w3m
Binary: w3m w3m-img
Architecture: source i386
Version: 0.5.2-10
Distribution: unstable
Urgency: low
Maintainer: Tatsuya Kinoshita <tats@debian.org>
Changed-By: Tatsuya Kinoshita <tats@debian.org>
Description: 
 w3m        - WWW browsable pager with excellent tables/frames support
 w3m-img    - inline image extension support utilities for w3m
Closes: 136810 138891 313365 398260 403634 473780 530515 573789 595534
Changes: 
 w3m (0.5.2-10) unstable; urgency=low
 .
   * debian/patches/010_upstream.patch: Sync with the upstream development
     snapshot on 2010-10-11.
     - Better non-ascii handling. (closes: #138891, #313365)
     - Introduce mailto_options. (closes: #473780)
     - All elements have the id attribute. (closes: #573789)
     - Define ATTR_ROWSPAN_MAX to check rowspan. (LP: #131993, LP: #619500)
     - Update the man page. (closes: #595534)
     - Add a FILES section to the man page. (closes: #403634)
     - Mention the -I option in the man page. (closes: #398260, #530515)
   * debian/patches/020_button.patch: Patch from upstream to support the
     button element.  It is discussed upstream and incomplete, but enough to
     login Launchpad. (LP: #628755, closes: #136810)
   * debian/patches/040_maximum-cols.patch: Removed. (merged upstream)
   * debian/control, debian/rules: Use autotools-dev (>= 20100122) to update
     config.guess and config.sub.
   * debian/patches/020_config-guess.patch: Removed.
Checksums-Sha1: 
 05deadee524841fcc1ed62de99854491e5b84ee4 1172 w3m_0.5.2-10.dsc
 123265cc5962123f16c0e50e78e8d03f66b2ad1c 309164 w3m_0.5.2-10.debian.tar.gz
 5c7b019047160927172f95f26ff3e831b7b2cc5c 1168274 w3m_0.5.2-10_i386.deb
 049b58ab24c694719849ada8d6418d2ee3af3328 108628 w3m-img_0.5.2-10_i386.deb
Checksums-Sha256: 
 87fb6505fdc6d39ee5550916d307e30157b7e204f1074e6f3689791b28f3006b 1172 w3m_0.5.2-10.dsc
 d3758753e9d054dc23aef1706303b6309c7000e49822f95bc1425d103c1eb59a 309164 w3m_0.5.2-10.debian.tar.gz
 0b45b1a395ce89b6da4bb3e1ae401f325cab78625e7faf9fa38bbcf612a8af4e 1168274 w3m_0.5.2-10_i386.deb
 d5ec0ecdce47e102e29c532149660dde3639f8144acfe6e4446c8648b89971ba 108628 w3m-img_0.5.2-10_i386.deb
Files: 
 466bc050f6c42fa4ca7872abacac53e2 1172 web standard w3m_0.5.2-10.dsc
 25ff3605defd4340b6bef29b86aece37 309164 web standard w3m_0.5.2-10.debian.tar.gz
 eb145b5328f4d5e90afba8c13e3f0e9e 1168274 web standard w3m_0.5.2-10_i386.deb
 0ccb625f4fbdfabc9e595572f68cc753 108628 web optional w3m-img_0.5.2-10_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAky4fK0ACgkQgV4LPvpMUpjRhgCg0g6+CWtlldXOG7a7BCqcfjRv
h80AoJxz4Pol4AoiB+dyf4K0xcelbKFl
=ZZ7t
-----END PGP SIGNATURE-----





Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 16 Feb 2011 07:33:25 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jan 7 12:41:38 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.