Skip to content

Commit

Permalink
Always lowercase nodeName.
Browse files Browse the repository at this point in the history
  • Loading branch information
int3 committed May 16, 2011
1 parent 47d2cf1 commit ee2d8a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vimiumFrontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ function findAndFollowLink(linkStrings) {
var findModeQueryHasResults = window.find(linkStrings[i], false, true, true, false, true, false);
if (findModeQueryHasResults) {
var node = window.getSelection().anchorNode;
while (node.nodeName != 'BODY') {
if (node.nodeName == 'A') {
while (node.nodeName.toLowerCase() != 'body') {
if (node.nodeName.toLowerCase() == 'a') {
window.location = node.href;
return true;
}
Expand Down

0 comments on commit ee2d8a8

Please sign in to comment.