[Webkit-unassigned] [Bug 55666] DOMNodeRemoved events are not dispatched

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 4 01:20:19 PST 2011


--- Comment #11 from Ryosuke Niwa <rniwa at webkit.org>  2011-03-04 01:20:18 PST ---
(In reply to comment #10)
> In the contentEditable editor I listen for the DOM mutation events to find out the DOM nodes that were modified, inserted or removed by the user, so that I could update the underlying text model being edited. For the "modified" part I use DOMCharacterDataModified event, and for the "inserted" - DOMNodeInserted, and both work perfectly. The problem now is how to track the removed DOM nodes...

You can listen to DOMNodeInserted, and then add an event listener for DOMNodeRemoved on that node inside the event listener and you can also remember the parent node.  When the node is removed, DOMNodeRemoved is fired.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list