Closed Bug 394719 Opened 17 years ago Closed 15 years ago

element added with DOM not in form.elements collection

Categories

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

1.8 Branch
x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 439950

People

(Reporter: jvdhorst, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

I have a table in a form. the table contains the input fields.

If I add an input field with DOM (appendChild) and use the form.elements collection to enumerate the fields, the newly added field is not there

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



works in IE ;)
Version: unspecified → 2.0 Branch
Just to be sure: I add the new input field to a cell of the table.

<form>
  <table>
    <tr>
      <td><input name="new field" /></td>
    </tr>
  </table>
</form>
Can you please attach a minimal testcase to this bug?
Component: Form Manager → DOM
Product: Firefox → Core
QA Contact: form.manager → general
Version: 2.0 Branch → 1.8 Branch
Yeah.. I will do that as soon as I have time
Duplicate of 439950
To workaround switch the position of your <table> and <form> elements
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.