Summary: | [test case] Javascript not handling 'value' property of a input of type text | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Albert Astals Cid <aacid> |
Component: | khtml ecma | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | faure |
Priority: | NOR | ||
Version: | 4.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Test case
Now it works test case that works with konq 3.2 |
Description
Albert Astals Cid
2003-12-28 15:38:55 UTC
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 |