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!
Received on Tuesday, 10 May 2005 10:09:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC