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

Re: from `w3m-form-parse-and-fontify' on garbage from micro$oft served page



(w3mmee とフォームに詳しい方、どうぞよろしく :)

>>>>> In [emacs-w3m : No.07225] Katsumi Yamaoka wrote:

> It's hard to build w3mmee in my system.

The business meeting was canceled at the last moment (we call it
DOTA-CAN in Japan) and I was able to have time to do it.  I
attached the patch for a temporary repair.  It should be
inspected by authorities since I'm not familiar with w3mmee and
forms.

>>>>> In [emacs-w3m : No.07224] Clemens Fischer wrote:

> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   string-match("+\\|%\\(0D%0A\\|\\([0-9a-fA-F][0-9a-fA-F]\\)\\)" nil 0)
>   w3m-url-decode-string(nil)
>   w3m-form-mee-select-value(nil)
>   w3m-form-parse-and-fontify(nil)
>   w3m-fontify-forms()
>   w3m-fontify()

>   w3m-create-text-page("http://www.landtag.sachsen.de/slt_online/de/infothek/index.asp?page=landesbeauftragte/datenschutzbeauftragter/taetigkeitsberichte/index.asp" "text/html" "ISO-8859-1" #<buffer *w3m*>)

[...]

I confirmed the same error occurs with w3mmee and emacs-w3m
while rendering the following page:

http://www.landtag.sachsen.de/slt_online/de/infothek/kopf.html

Tape buttons appear at the bottom of the page and one of two
cancelled buttons causes that error.  Here it is:

<pre_int>[<input_alt hseq="14" fid="0" type=select name="navigator_selectbox" selectnumber=0></input_alt>]</pre_int>

Strangely, those buttons don't appear in Firefox.  The patch:
--- w3m-form.el~	2004-11-26 03:11:15 +0000
+++ w3m-form.el	2004-12-03 06:49:32 +0000
@@ -644,8 +644,9 @@
 		 w3m-form-name ,name)))
 	     ((string= type "select")
 	      (if (eq w3m-type 'w3mmee)
-		  (w3m-form-put form id name
-				(w3m-form-mee-select-value value))
+		  (when value
+		    (w3m-form-put form id name
+				  (w3m-form-mee-select-value value)))
 		(setq selects (cons (list selectnumber form id name)
 				    selects)))
 	      (add-text-properties