Re: [PHP-XML-DEV] Divergence from DOM standard

[email protected] (Rob Richards) Wed, 10 May 2006 05:21:06 -0400
Newsgroups php.xml.dev
Message-ID <[email protected]>
Jirka Kosek wrote:
> Hi,
>
> nodeValue property called on DOMNode should return node value. However 
> to me it seems that this property returns text content of all 
> descendants, similarly to textContent property. Is there any 
> justification for this divergence from DOM standard?
The only difference here is working with a DOMElement. Per specs it 
should return NULL but for convenience it returns all text content of 
all descendants.

Rob