Re: domxpath->query: bug or not?

From: Date: Wed, 18 Feb 2004 22:46:02 +0000
Subject: Re: domxpath->query: bug or not?
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7977@lists.php.net to get a copy of this message
From: Banyai Zsolt > If I know well, the domxpath::query always returns with DOMNodeList. But > if i write an expression like this: //node1/@attribute and i haven't > got node1 node in the XML, the query return with false (boolean). But if > i write an expression like this: //node1/@attr when i have node1 node > but i haven't got attr attribute on that, the query return with an empty > DOMNodeList. > > If it's not a bug, please inform me about the details. Thanks, fixed now. left over code from pre-domnodelist stuff. will always return domnodelist now unless there is an error Rob

« previous php.internals (#7977) next »