This is part of the internal DOM management provided by the browser. Although the functionality is similar to parentElement, it is not quite the same since there are two hierarchies superimposed on one another. One hierarchy simply contains objects representing the HTML tags. The other contains additional objects that help the browser maintain the text between the HTML tags.
The parentElement property is not DOM compliant whereas parentNode is.
Prev | Home | Next |
Element.parentElement | Up | Element.parentTextEdit |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |