[webkit-help] node.h comment

Adam Roben aroben at apple.com
Wed Jul 15 07:57:49 PDT 2009

On Jul 15, 2009, at 6:27 AM, Jack Wootton wrote:

> Line 81 of Node.h is the comment
> // this class implements nodes, which can have a parent but no  
> children:
> I don't understand this comment since Nodes are used in trees, and
> tree structures have children (and parents).  Also Node has the
> methods firstChild and lastChild.
> http://trac.webkit.org/browser/trunk/WebCore/dom/Node.h

The comment isn't really accurate. Nodes can have children, but to do  
so they much be ContainerNodes.


More information about the webkit-help mailing list