diff --git a/reference/dom/domxpath/evaluate.xml b/reference/dom/domxpath/evaluate.xml
index 2293ac9a11..786cdc36b3 100644
--- a/reference/dom/domxpath/evaluate.xml
+++ b/reference/dom/domxpath/evaluate.xml
@@ -60,6 +60,11 @@
Returns a typed result if possible or a DOMNodeList
containing all nodes matching the given XPath expression.
+
+ If the expression is malformed or the
+ contextnode is invalid,
+ DOMXPath::evaluate returns &false;.
+
&reftitle.changelog;
diff --git a/reference/dom/domxpath/query.xml b/reference/dom/domxpath/query.xml
index 2495adff8d..ab4e199f8f 100644
--- a/reference/dom/domxpath/query.xml
+++ b/reference/dom/domxpath/query.xml
@@ -56,9 +56,15 @@
&reftitle.returnvalues;
- Returns a DOMNodeList containing all nodes matching
- the given XPath expression. Any expression which do
- not return nodes will return an empty DOMNodeList.
+ Returns a DOMNodeList containing all nodes matching
+ the given XPath expression. Any expression which
+ does not return nodes will return an empty
+ DOMNodeList.
+
+
+ If the expression is malformed or the
+ contextnode is invalid,
+ DOMXPath::query returns &false;.