[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

Re: fail to load html with onload and search form

In [emacs-w3m:12795]
On Mon, 11 Sep 2017 10:53:17 +1000, Kevin Ryde wrote:
> In the current cvs, a html containing <body onload=...> and <form> fails
> to load.  For example foo.html below,

>     (w3m-browse-url "file:///tmp/foo.html")
>     =>
>     Reading file:///tmp/foo.html failed!

> I struck this on pages from oeis.org which have two lines of script for
> <body onload=""> to set the focus to the search form, or something like
> that.  I'd like that to do nothing in w3m.

Thanks.  I've added a workaround, with a FIXME comment, so that
emacs-w3m doesn't do the automatic redirection if the onload
function name doesn't end with ".submit".