Updates:
        Status: WontFix

Comment #5 on issue 1404 by kpreid.switchb.org: Click() method missing on buttons
http://code.google.com/p/google-caja/issues/detail?id=1404

Adding the explanation of the rationale originally from issue 1129, as I've made this the canonical "implement click()" bug:

If we just invoke native .click(), then the event it produces can trigger event listeners (especially capturing ones) in the host page. This is undesirable in that we otherwise provide the condition that the only time the host page will see a click event is when the user actually clicks; guests' createEvent/dispatchEvent are namespaced so they do not trigger host listeners.

The alternative is to reimplement all of the possible side effects of .click() (which include e.g. modifying form fields' state). This is doable, but is a large amount of work reimplementing browser behavior, and we have not observed a strong need for click().

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "Google Caja Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to