Re: Simulating clicks on the DOM node of the GMAIL page.
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Amit Saurav wrote: > For example, the emails, are also <span> > texts but when clicked by a user, the corresponding mails open. So it sounds like there is a click handler somewhere that does that. Have you found it? Have you made sure you're dispatching a click to some descendant of the node that has the handler? If the handler checks event.target, you probably need to dispatch to a particular descendant, for that matter. In general, you probably just want to dispatch the click to whatever node (possibly a Text node!) the user would actually click on. -Boris