Interesting... The latest O'Reilly Dynamic HTML book, which is usually 
exceptional in it's completeness and quality, doesn't seem to mention that.  
Maybe it's just not layed out how I would have expected and it's in another 
part of the book.

In any case, thanks for the info, and for the gentle nudge in the right 
direction... My code is working now :)

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com

On Wed, December 22, 2004 3:42 pm, Jeff Beal said:
> nodeValue is part of the W3C DOM.  (See
> http://www.w3.org/TR/DOM-Level-2-Core for the full specification.)  The
> W3C DOM is a language-neutral specification for accessing a document
> object model, whether HTML or XML.  The org.w3c.dom package in Java 1.4
> is an implementation of the standard for XML documents in the Java
> language.  Reasonably recent versions of the browsers support this
> standard in JavaScript to one extent or another.
> 
> The only thing that I always forget is that nodeValue() only returns a
> value for text nodes.  It's not like XSLT where the text value of an
> element is the text value of all contained text nodes.  So, basically,
> this.nodeValue wouldn't have worked anyway.  The DOM-compliant way of
> doing this.innerText (for an element with only one child node) would be
> this.childNodes.items(0).nodeValue.  this.innerText is a lot neater.
> 
> -- Jeff
> 
> [EMAIL PROTECTED] wrote:
>> You DID put me on to one answer though... I can pass this.innerText,
>> that works.  I'd still like to know what the nodeValue was though, I've
>> never seen that...
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to