From larrytheliquid
Merge commit '4d05a2cf2b2de34dda0a3e805ab11b60540578df'
This commit is contained in:
commit
b85aacae1c
|
@ -1,6 +1,8 @@
|
|||
var links = inDocument.getElementsByTagName('a');
|
||||
var candidateLinks = $A(links).select(function(candidateLink) {
|
||||
return PatternMatcher.matches(locator, getText(candidateLink));
|
||||
var textMatched = PatternMatcher.matches(locator, getText(candidateLink));
|
||||
var idMatched = PatternMatcher.matches(locator, candidateLink.id);
|
||||
return textMatched || idMatched;
|
||||
});
|
||||
if (candidateLinks.length == 0) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue