Status: New
Owner: kpreid.switchb.org
Labels: Type-Defect Priority-Medium
New issue 1649 by [email protected]: Link targets are followed
unconditionally irrespective of return value from click handler
http://code.google.com/p/google-caja/issues/detail?id=1649
What steps will reproduce the problem?
1. In the following snippet, returning false from click handler should not
result in a browser redirect.
<a id="linkNoProp" href="https://www.google.com">link return false</a>
<script>document.getElementById('linkNoProp').onclick = function()
{return false;};</script>
What is the expected output? What do you see instead?
Instead the browser redirects to the target link unconditionally.
Please use labels and text to provide additional information.
--
---
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.