Bug 50815 - [testcase] Nested forms bug
Summary: [testcase] Nested forms bug
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml forms (show other bugs)
Version: 3.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 58399 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-16 18:37 UTC by Chris Lynch
Modified: 2012-06-18 14:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
A nice testcase :) (690 bytes, text/html)
2002-11-18 11:38 UTC, David Faure
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lynch 2002-11-16 18:37:47 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Compiled From Sources
Compiler:          gcc 3.2 
OS:          Linux

If you want to translate a page in Konqueror and you click the Tools | Translate Web Page, and then select the language, it takes you to the Altavista translate page and fills the URL in for you.  But, when you click the Translate button, it gives you an error message saying, "Please enter some text to translate."  So, you have to type a letter or whatever into the text box above before it will translate.

This isn't a problem with other operating systems, so I'm assuming it's a problem with Konqueror's javascript interpretor.  It's not really a serious bug, but quite annoying none the less, especially if English isn't your native language and have to translate pages all the time.  This is a very useful feature and I wish that it didn't have this annoyance.

Thanks for all your hard work,
Chris Lynch
Comment 1 David Faure 2002-11-18 11:38:13 UTC
The problem is that the two <form> elements are nested (!!). So when submitting the 
second one (name=webtranslate), the first form's onSubmit gets triggered too (which 
leads to this error message). 
Hmm, this doesn't look like a case where  the browsers move around the <form> tags. 
So maybe the bug is simply that the usual DOM event propagation mechanism 
doesn't apply for SUBMIT_EVENT? Passing on to Dirk, with testcase. 
 
Comment 2 David Faure 2002-11-18 11:38:48 UTC
Created attachment 476 [details]
A nice testcase :)
Comment 3 Dirk Mueller 2002-11-21 21:09:08 UTC
first comment without further investigating this works as designed: 
onsubmit bubbles.  
 
however form's shouldn't be nested either. arghlgrmbl.  
 
Comment 4 Daniel Arnold 2005-02-25 16:15:49 UTC
Tested the test case with KDE 3.3.2a and there is still a bug present. If I press the second submit button it gives me first a small message in a new window from this button and then the same from the first button although I din't press the first one.
Comment 5 Thiago Macieira 2005-02-26 02:35:19 UTC
Same with HEAD.
Comment 6 Maksim Orlovich 2005-06-16 16:18:05 UTC
*** Bug 58399 has been marked as a duplicate of this bug. ***
Comment 7 Ismail Donmez 2006-05-07 20:07:54 UTC
We render the page same as Firefox. Can we close the bug?
Comment 8 Ismail Donmez 2006-05-07 20:10:08 UTC
I managed to comment on wrong bug, sorry guys.
Comment 9 George Goldberg 2008-04-06 04:06:00 UTC
This still happens in svn trunk r793457, but will defer to konqueror developers to say whether it is actually a bug or not.
Comment 10 Dario Andres 2009-01-04 21:54:26 UTC
Still valid using:

Qt: 4.4.3 + qt-copy-patches-889120
KDE: 4.1.87 (KDE 4.1.87 (KDE 4.2 >= 20090101))
kdelibs svn rev. 905636 / kdebase svn rev. 905636
on ArchLinux x86_64 - Kernel 2.6.27.10
Comment 11 Myriam Schweingruber 2012-06-18 14:09:24 UTC
Message from the Bugsquad and Konqueror teams:
This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore.
If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report.
Thank you for your understanding.