On Jan 6, 7:08 pm, Walter Lee Davis <wa...@wdstudio.com> wrote:
> You're probably getting something other than what you expect with the 
> parentNode
> attribute there. Prototype has a lot of dom-walking methods that get around 
> the problem of
> whitespace nodes and the like. You may *think* that the parentNode is an 
> element, but it's
> just a space.

No. By definition, a parent node is an element, document, or document
fragment. Text nodes (like a space) cannot have children. What you've
said can be true of a child node, a sibling, etc., but not
`parentNode`. (Also note that `parentNode` is a *property*, not an
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to