Gmane
X-Face
From: Hideyuki SHIRAI <shirai <at> meadowy.org>
Subject: [emacs-w3m:10744] Re: <button> not supported
Newsgroups: gmane.emacs.w3m
Date: 2009-03-03 04:44:40 GMT (2 years, 49 weeks and 56 minutes ago)
From: jidanni <at> jidanni.org said
Subject: [emacs-w3m:10743] <button> not supported
Message-ID: <87zlg3466i.fsf <at> jidanni.org>
Date: Tue, 03 Mar 2009 11:49:09 +0800

> It seems emacs-w3m and w3m don't support the standard button in forms:
> <button name="hl" value="en" type="submit">English</button>
> Even lynx does.

emacs-w3m cann't support the BUTTON element. 

Because w3m doesn't support the BUTTON element. Therefore,
necessary information is not transmitted to emacs. 

...
I think it is good when converting it into the INPUT element if
the BUTTON element is easily supported.

;; ---------------
(setq w3m-use-filter t)

(eval-after-load "w3m-filter"
  '(nconc w3m-filter-rules
	  '((".*" w3m-filter-button2input))))

(defun w3m-filter-button2input (url)
  (w3m-filter-replace-regexp url "<button[\t\n ]" "<input "))

# It might be *too* easy ;-p

-- 
Hideyuki SHIRAI (mailto:shirai <at> meadowy.org)