struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derek Broughton <>
Subject Re: bean:write filter question
Date Thu, 23 Dec 2004 12:41:55 GMT
On Wednesday 22 December 2004 16:42, Jeff Beal wrote:
> 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.

Darn. MS's DHTML reference says that there's no public standard for innerText, 
which means it's only guaranteed to work on IE.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message