jquery/jquery-mobile — Issue #3777: Should we change href on vclick
Author: gseguin
Created: 2012-03-08 23:50:48+00:00
State: open

4f12d469454f777c845ee245d60d5a7c3a710db9 changes the href of a clicked link to # between ```vclick``` and ```click```.

The issue is that if the user binds a ```click``` handler below ```document``` and tries to access the href, it will be "#".

The following jsbin illustrate the problem (to try on a touch device):

- click handler installed on document alerts the original href: http://jsbin.com/owubok/2
- click handler installed on ```

``` alerts "#": http://jsbin.com/owubok/3

I know it solves a real problem but if there are no other way to achieve the same result then we should document the caveat.