Links should be checked using getAttribute('href')

Same issue as https://github.com/malko/l.js/pull/3 but with links. getAttribute should be used instead of href to avoid problems with relative paths.