MDL-66378 behat: All args are required for document.evaluate
This commit is contained in:
@@ -869,8 +869,8 @@ class behat_general extends behat_base {
|
||||
// this DOM method instead.
|
||||
$js = <<<EOF
|
||||
(function() {
|
||||
var a = document.evaluate("{$prexpath}", document).iterateNext();
|
||||
var b = document.evaluate("{$postxpath}", document).iterateNext();
|
||||
var a = document.evaluate("{$prexpath}", document, null, XPathResult.ANY_TYPE, null).iterateNext();
|
||||
var b = document.evaluate("{$postxpath}", document, null, XPathResult.ANY_TYPE, null).iterateNext();
|
||||
return a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING;
|
||||
})()
|
||||
EOF;
|
||||
|
||||
Reference in New Issue
Block a user