Skip to content

Commit d1e9b27

Browse files
committed
Firefox: Adding an extra check to result wrapper. Fixes issue #1426
1 parent 577d1b2 commit d1e9b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/firefox-driver/js/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ Utils.wrapResult = function(result, doc) {
734734
}
735735

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

0 commit comments

Comments
 (0)