[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: <button> not supported
- From: Hideyuki SHIRAI (白井秀行) <shirai@xxxxxxxxxxx>
- Date: Tue, 03 Mar 2009 13:44:40 +0900 (JST)
- X-ml-name: emacs-w3m
- X-mail-count: 10744
- References: <87zlg3466i.fsf@xxxxxxxxxxx>
From: jidanni@xxxxxxxxxxx said
Subject: [emacs-w3m:10743] <button> not supported
Message-ID: <87zlg3466i.fsf@xxxxxxxxxxx>
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@xxxxxxxxxxx)