Closed Bug 146220 Opened 22 years ago Closed 7 years ago

events set via innerHTML not registered after document.load

Categories

(Core :: DOM: Events, defect, P3)

x86
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: weber, Unassigned)

References

Details

Attachments

(2 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508
Netscape6/6.2.3
BuildID:    20010901

In the attached example, the onClick event is not registered for the link object
inserted via assignment to innerHTML when called from the event procedure for
document.load. 

The same assignment called from within the doLoad procedure works fine.

Reproducible: Always
Steps to Reproduce:
1.Load attached page foo.html
2.Click "Click me to load document"
3. Document is loaded and link is changed
4. Click "Click me to demonstrate defect"


Actual Results:  After step 4, nothing happens

Expected Results:  After step 4, an alert box with the message "Works!" should
be displayed.
I see it on Linux, 2002073022
Depends on: 155749
confirming on build 2002-09-04-08-trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
WFM if I fix the first attachment: anotherfoo.xml -> foo.xml.
That was (of course) causing an exception.
Assignee: joki → nobody
QA Contact: vladimire → events
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: