]> git.gir.st - VimFx.git/commit
Do not consider links without href as proper links
authorSimon Lydell <simon.lydell@gmail.com>
Mon, 26 Jan 2015 16:29:51 +0000 (17:29 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Mon, 26 Jan 2015 16:29:51 +0000 (17:29 +0100)
commitc3ddba69e3be5d1c9f9f13a571711b70a12552eb
tree3541950af6e98532bae7ba3ab3b97c5b4b7ff3f1
parenta4dfda53a2fdf9fb4a2a1186e0dd5608a9fbbbd5
Do not consider links without href as proper links

Links ending with a `#` (`<a href="#">`) as well as `javascript:` links are
already excluded, because they're used as buttons, not links. Links without href
at all (`<a>`) should be excluded too, since they are also used as buttons (for
example, the voting buttons on stackoverflow.com). If they're not excluded, all
such links get the same hint, even though all of them do different things
through JavaScript. Moreover, the 'F' and 'gF' commands would try to open them
in new tabs, which of course wouldn't work.
extension/lib/utils.coffee
Imprint / Impressum