W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2005

Re: DOM XPath: Who's responsible for merging text nodes? User or implementation?

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Tue, 10 May 2005 06:09:27 -0400
Message-ID: <42808857.9050608@metalab.unc.edu>
To: Frans Englich <frans.englich@telia.com>
CC: www-dom@w3.org

Frans Englich wrote:

> I interpret that as the implementation can "expect" only separate text nodes 
> to be exist, but that still leaves the a bit unsure sitation of when the user 
> code simply is buggy; that the user forgets to manually merge text 
> nodes(think web browsers).

Only the first of the adjacent text nodes is returned. Subsequent 
adjacent nodes are omitted from the results.

-- 
Elliotte Rusty Harold  elharo@metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
Received on Tuesday, 10 May 2005 10:09:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:58 GMT