akhodakivskiy/VimFx — pull request #313 by zhuochun (2014-05-07 20:02:15+00:00)
Title: follow ref link type first in follow prev/next links

Based on the discussion in #280, as suggested by @esseb:

> `` and `` should be prioritized over reading link text. Reading link text should only be a fallback if there is no "link" or "a" elements on the page with `rel="prev"` or `rel="next"` attributes. This would fix the stackoverflow pagination at least.
>
> Reference:
> https://support.google.com/webmasters/answer/1663744?hl=en
> http://www.w3.org/TR/html5/links.html#linkTypes

Now add link type matching when follow prev/next links.

- `rel` is split on space because there may has multiple rel and these the element's rel attribute must be split on spaces