Closed Bug 282870 Opened 20 years ago Closed 20 years ago

innerHTML inserts bogus form elements when inserting form controls

Categories

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

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 283036

People

(Reporter: bc, Unassigned)

References

()

Details

Attachments

(1 file)

Sometime after 2005-02-12, the trunk stopped running the inline examples in the
javascript bootcamp. The problem appears to be when a dynamcally created div has
its contents set to a select element using innerHTML. A bogus form element is
wrapped around the select.

Testcase coming up.
Attached file testcase
1. open testcase
2. click execute
3. alert that element not found, followed by alert of innerHTML showing bogus
form.

works in 1.7x and on trunk 2005-02-12.
works in 2005-02-18 trunk build, broken in 2005-02-19 build.
Blake, do you know what might have caused this?
I think it was me that caused this. :-(
I'm going to mark this a duplicate of bug 283036 even though this was filed
first, because that one got more discussion first. Sorry!

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

Attachment

General

Created:
Updated:
Size: