w3m: support for the <button> tag (HTML 4.01)

Bug #15368 reported by Debian Bug Importer on 2005-04-11
Affects Status Importance Assigned to Milestone
Fix Released
Matthias Klose

Bug Description

Automatically imported from Debian bug report #136810 http://bugs.debian.org/136810

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #136810 http://bugs.debian.org/136810

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Mon, 04 Mar 2002 19:00:09 +0100
From: Jacobo Tarrio <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: w3m: support for the <button> tag (HTML 4.01)

Package: w3m
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

Revision history for this message
Matthias Klose (doko) wrote :

imported by mistake as part of gcc-3.4/gcc-4.0 related bugs, closing.

Revision history for this message
In , Trent W. Buck (twb) wrote : bug 136810 is forwarded to http://sourceforge.net/tracker/index.php?func=detail&aid=1942190&group_id=39518&atid=425439

# 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

Revision history for this message
In , Trent W. Buck (twb) wrote : Re: [emacs-w3m:10279] Re: <button> on forms
Download full text (6.0 KiB)

I found this on the mailing list. I haven't tried it yet.

From: Tetsurou Okazaki <email address hidden>
Subject: [emacs-w3m:10279] Re: <button> on forms
Newsgroups: gmane.emacs.w3m
To: <email address hidden>
Date: Wed, 02 Jul 2008 14:05:57 +1000
Reply-To: <email address hidden>

At Tue, 01 Jul 2008 20:48:22 +0800,
<email address hidden> 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_N_FORM
+/button HTML_N_BUTTON
 /textarea HTML_N_TEXTAREA
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);
+ tmp = process_button(tag);
+ feed_table1(tbl, tmp, mode, width);
+ break;
+ 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 1...


Changed in debian:
status: Confirmed → New
Changed in debian:
status: New → Confirmed
Changed in debian:
status: Confirmed → Fix Released
Revision history for this message
Tom (brommage) wrote : unread message from ladie for you

(Katya, 25yo), I serch for beloved man, are you?

hello again!
I am Katya 25 y.o
I wish to meet love of my life, are you?
Here are my message for you and new photos:


New free service! check info at the site!
( to unsubscribe -click link and enter e-mail address.)

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.