note 99324 added to domxpath.query
| From: | alan at hcibook dot com | Date: | Tue, 10 Aug 2010 21:08:59 +0000 |
| Subject: | note 99324 added to domxpath.query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171555@lists.php.net to get a copy of this message | ||
The behaviour reported by khaz below is not an error in DOMXPath, but in fact perfectly correct.
In http://www.w3.org/TR/xpath/
// means "descendents of the root"
.// means "descendants of the context node"
query() is not ignoring the contextnode, it is just that some XPath expressions are relative to the
contextnode and others (such as those starting '/' or '//') relative to the root
----
Server IP: 69.147.83.197
Probable Submitter: 82.68.252.134
----
Manual Page -- http://www.php.net/manual/en/domxpath.query.php
Edit -- https://master.php.net/note/edit/99324
Del: integrated -- https://master.php.net/note/delete/99324/integrated
Del: useless -- https://master.php.net/note/delete/99324/useless
Del: bad code -- https://master.php.net/note/delete/99324/bad+code
Del: spam -- https://master.php.net/note/delete/99324/spam
Del: non-english -- https://master.php.net/note/delete/99324/non-english
Del: in docs -- https://master.php.net/note/delete/99324/in+docs
Del: other reasons-- https://master.php.net/note/delete/99324
Reject -- https://master.php.net/note/reject/99324
Search -- https://master.php.net/manage/user-notes.php