Version: 4.0 (using KDE 3.1.94 (CVS >= 20031206), compiled sources) Compiler: gcc version 3.3.1 (Mandrake Linux 9.2 3.3.1-2mdk) OS: Linux (i686) release 2.4.22-21mdk The test case works in Konqueror 3.1.4 but not in 3.1.94.
Created attachment 3860 [details] Test case
Created attachment 3861 [details] Now it works Maybe it was my fault at the javascript code. Now it works. It still is a regression, but maybe a 'good' regression. If you think the bug has to be close feel free to do it.
I kind of doubt that the first test case works in IE, but I won't reboot
your #1 works in IE but it doesn't work in mozilla, so I'm not suprised
Created attachment 4363 [details] test case that works with konq 3.2 this is a fun bug: it works with konqueror 3.2, but neither with mozilla nor IE
OK #5 is because "window.what" works. It shouldn't. I think window.<name> is only for images, forms and applets, just like document.<name>. I'm working on a patch.
OK, back to #1, the conclusion is that on IE, calling the input element by name only works when the input field isn't in a form. Kind of a "toplevel" field (those inside a form being accessible via formname.inputname). Can someone check in IE what this code shows? function search() { if (this.what) alert("this.what exists. this="+this); if (window.what) alert("window.what exists"); if (document.what) alert("document.what exists"); alert("document.forms.length="+document.forms.length); if (document.forms[0].what) alert("document.forms[0].what exists"); }
this.what exists. this=[object] window.what exists document.forms.length=0
Since testcase 1 does not work in firefox nor on chromium we'll assume my javascript in 2003 was worse than the one it is 10 years later, and its hard :D