Skip to content

Commit

Permalink
Firefox: Adding an extra check to result wrapper. Fixes issue #1426
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Jan 23, 2016
1 parent 577d1b2 commit d1e9b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/firefox-driver/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ Utils.wrapResult = function(result, doc) {
}

// There's got to be a more intelligent way of detecting this.
if (result['tagName']) {
if (result.nodeType == 1 && result['tagName']) {
return {'ELEMENT': Utils.addToKnownElements(result)};
}

Expand Down

0 comments on commit d1e9b27

Please sign in to comment.