Re: XPath on DOM nodes not inserted in the owner document

Martin Honnen <[email protected]>
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Liberty Development
Message-ID <[email protected]>
Jonas Sicking wrote:
> Martin Honnen wrote:
>> Mozilla and Opera 9 behave differently here, with Mozilla the XPath / 
>> evaluated relatively to a node with no parent node does not find any 
>> node while with Opera 9 the node itself is returned as the "root node".
> 
> Have you tested in recent nightlies? We have actually changed our 
> behavior here to make it more predictable. Each orphaned subtree is more 
> or less considered its own document. So evaluating '/' in that subtree 
> will return the root of that subtree.

No, I did not look at nighties so far but a test now shows that the 
behaviour is indeed different to the release builds.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.