W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: Comments and questions on text node interface

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 13 Mar 2002 17:51:27 -0500
To: Stefan Wachter <Stefan.Wachter@gmx.de>
Cc: www-dom@w3.org
Message-ID: <OFEEC02B30.446D8597-ON85256B7B.007D1F9F@pok.ibm.com>

>1. wholeText attribute:
>What is the expected use case of this attribute?

One use case: Impedence matching between the DOM and the XPath Data Model.
XPath sees all adjacent text as a single value; this attribute permits the
DOM to support that by returning the first text node and assuming the
caller is clueful enough to retrieve wholetext rather than just nodevalue.

It's arguably just a convenience method, but a useful and frequently
requested one -- especially given the proposal that the DOM provide an
XPath API.

No, it _shouldn't_ be on the parent; there may be non-text children as
well, and wholeText just accesses a single adjacent text block rather than
all text children.

Joe Kesselman  / IBM Research
Received on Wednesday, 13 March 2002 17:52:02 UTC

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