]> git.gir.st - VimFx.git/commit
Slightly improve markable element matching
authorSimon Lydell <simon.lydell@gmail.com>
Fri, 16 May 2014 18:49:38 +0000 (20:49 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Fri, 16 May 2014 18:49:38 +0000 (20:49 +0200)
commitbe94b559b942dbb5f670d54672b1fa8b2a088b60
tree5f06d52393cbb30077bba59dc8e4e43267a31a62
parent9007b7d8e2fcf44edd82c6cc879844d097b20364
Slightly improve markable element matching

- Only `<a>` elements with a `href` attribute should be matched, since
  HTML5 allows `<a>` elements to omit `href`:

  > If the a element has no href attribute, then the element represents
  > a placeholder for where a link might otherwise have been placed, if
  > it had been relevant, consisting of just the element's contents.

  Reference:
  <http://developers.whatwg.org/text-level-semantics.html#the-a-element>

- Elements with the `tabindex` attribute should be matched, but not
  `tabindex=-1`, which means explicitly saying that the element should
  _not_ be focusable.
extension/packages/utils.coffee
Imprint / Impressum