Closed Bug 218835 Opened 21 years ago Closed 21 years ago

display:none on iframe causes forms within no to be submitted when using click() method on button.

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 100533

People

(Reporter: donguana, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624

Form submittion fails to occur when attempting to have the parent frame tell a
child frame (which was hiddend using display:none) containing a form to submit
the form using the click() method one of the buttons within that form.

Reproducible: Always

Steps to Reproduce:
See attachements to follow
Actual Results:  
If the child frame is hidden then only the main form will be submitted however
if the child frame is visible using display:block then the inner frame is
submitted and then the main frame. (This is explanation is based on the
attachements to follow.)

Expected Results:  
I would expect that even if the frame is hidden the form would still be
submitted properly.
Attached file Testcase
Hope this work - I will be linking to the previous attachement....

NOTE: In this attachment if you click on the unhide repeatably it is switching
the "display" from "none" to "block" and from "block" to "none". Initially when
it is set to none there is not much space between the submit button and the
text below it however when you switch it from "none" to "block" and then back
to "none" it does not go back to the way it was before. I have found a few bugs
related to this but I did not find the one that dupplicates this behaviour -
should you know the bug that this is related to could you let me know.
whilst the parent frame test page is more complex, this looks like a duplicate
of bug 100533
Yes A agree seems to be the same as bug# 100533

*** This bug has been marked as a duplicate of 100533 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: