Closed Bug 73821 Opened 23 years ago Closed 22 years ago

XML and HTML elements don't compile handlers on insertion

Categories

(Core :: DOM: Events, defect)

defect
Not set
major

Tracking

()

VERIFIED WORKSFORME
mozilla1.0.1

People

(Reporter: dr, Assigned: hyatt)

References

Details

Attachments

(1 file)

XML and HTML elements, when inserted into a document, don't compile their event
handlers. XUL elements do. This means, among other things, that event handlers
on XBL (non-XUL) anonymous content don't work.
Blocks: 40105
Keywords: mozilla0.9
Is this related to bug 26528?

/be
Related, but not a dup. I assume that this is about not compiling event handlers
that are set as "onclick='...'" attributes in the HTML/XML source, right?
Yeah.  I could patch this pretty easily (since this works in XUL), but I'm
wondering if I should wait until after jst lands his branch.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.1
Johnny: yeah, it's about the attributes. It's like 26528, but we don't care if
the actual attributes are copied or not as long as the handlers are compiled...
hyatt, please do wait with this until my xpconnec changes are checked in, thanks.
Target Milestone: mozilla0.9.1 → mozilla1.0.1
Is this issue resolved?
Attached file Testcase
Works for me in the testcase I just attached. I'm not sure this is exactly the
testcase we were dealing with before, but it's been over a year and a half, so I
wouldn't be surprised if somebody fixed this already.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Verifying.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: