Open
Bug 149620
Opened 23 years ago
Updated 2 years ago
DOMSubtreeModified does not bubble up to xbl handler
Categories
(Core :: DOM: Events, defect, P5)
Tracking
()
NEW
People
(Reporter: justink, Unassigned)
References
Details
Attachments
(2 files, 1 obsolete file)
Inserting a node into the xbl element DOMSubtreeModified event does not trigger
the event in the xbl's handler.
<handler event="DOMSubtreeModified" action="alert('inserted');"/>
The action alert will never be called.
Changing the event to DOMNodeInserted, however, does trigger the action.
Comment 1•23 years ago
|
||
status of this?
Reporter | ||
Comment 2•23 years ago
|
||
good question. will hack up a quick test this evening and post results ...
Reporter | ||
Comment 3•22 years ago
|
||
testcase, as simple as I could make it
Reporter | ||
Comment 4•22 years ago
|
||
The test case is rather simple.
Just extract the tarball and enter file:///path/to/bug149620.xul in the url bar.
Click the Add button and it calls the Add() method in the xbl element, which in
turn modifies the xml dom tree by inserting another label into the anonymous
content.
There are two handlers in the binding. The DOMNodeInserted event is commented
out. If you comment out the DOMSubtreeModified handler and uncomment
DOMNodeInserted handler, then the alert will popup.
However, no alert will popup on the DOMSubtreeModified handler. I can only
assume this is because the event is either never dispatched or does not
correctly travel up the dom tree.
Comment 5•22 years ago
|
||
Oh man, sorry, I forgot, that event is not implemented yet...
*** This bug has been marked as a duplicate of 74218 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Comment 7•21 years ago
|
||
Attachment #98259 -
Attachment is obsolete: true
Comment 8•21 years ago
|
||
According to this testcase, XUL doesn't support the DOMSubtreeModified event
listener properly.
Status: VERIFIED → UNCONFIRMED
Resolution: DUPLICATE → ---
Comment 9•21 years ago
|
||
Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.6a) Gecko/20031009
Assignee: joki → events
QA Contact: vladimire → ian
Updated•21 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 10•21 years ago
|
||
Incidentally, I see some funky breakage of replaceChild() in DOM Inspector.
Updated•16 years ago
|
Assignee: events → nobody
QA Contact: ian → events
Comment 11•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046
Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.
If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•