(*** This bug was imported into bugs.kde.org ***) Package: khtml Version: 3.0 (using KDE 2.1.2 ) Severity: normal Installed from: Debian Package 4:2.1.2-2 (testing/unstable) Compiler: gcc version 2.95.4 20010319 (Debian prerelease) OS: Linux 2.4.4 i686 OS/Compiler notes: I have a problem with konqueror 2.1.1 not aborting a link when the "onclick" event returns false. This works in Netscape IE etc. My problem seems to be exactly like bug#17570 but that bug was closed claiming it was fixed back in January. Well it seems not to be fixed :) Thanks Avery (Submitted via bugs.kde.org) (Called from KBugReport dialog)
I see the same problem. But it's not so easy to track down. A simple test works perfectly: <A HREF = "http://bugs.kde.org/" onClick="confirm('do it');confirm('for sure?')"> test of onclick cancel feature</A> A complicated test page shows the failure condition: http://www.intellinetcontrols.com/test.html Click on any button other than "west" to see it. No matter how many return(0) statements I put in Konqurer follows the link. Netscape and IE canccel the action as they should. -Bryce
Too bad the test page is not available anymore. I think it's safe to assume= =20 that the problem has been fixed meanwhile (for KDE 3.0).
As reported by Mike Cantone (mcantone at skarven dot net) the problem has appeared again (or has never been fixed properly). See attachment.
Created attachment 8298 [details] test onclick's handling of return values
Confirming the problem
Created attachment 10944 [details] Test case Fixed version
After fixing the test case (didn't work with other browsers either) I can't see a problem anymore. Assuming it is fixed.