Re: Constructive criticism from a js-html-css developer.
Boris Zbarsky <[email protected]> Sun, 26 Jun 2011 10:51:33 -0400
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 6/26/11 8:24 AM, Rene Veerman wrote: > But if you do that, you get ghost events, for a needed onmouseout you > get an extra onmouseover and then (if you're lucky) another > onmouseout. These have different targets, no? So this should be fine as long as your event listener checks what the event target is and acts accordingly. > These somehow get either their direct .parentNode, or their > grandfather (.parentNode.parentNode) reset to null. I swear it's not > me doing it on purpose ;) There are innerHTML sets all over your code. That would remove the old nodes from the DOM, and create new nodes parsed from the string in its place. Are you sure that's not what's happening here? -Boris