W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2004

Why is DOMDocument derived from DOMNode ??

From: Jaspreet Singh <Jasingh@quark.co.in>
Date: Fri, 19 Mar 2004 21:46:30 +0530
Message-ID: <7D5800A5B6E26644B2EB7A862856B0D40F70487D@SARASWATI>
To: www-dom@w3.org
Hi All

A DOMDocument is just a container. So why is it derived from DOMNode?

For invoking DOMNode functions we should get the DocumentElement from the
Document and then invoke the functions we need.

I am trying to implement the DOMDocument interface and I'm quite puzzled as
to what should be the impl for getFirstChild, etc.

Thanks in Advance
Received on Friday, 19 March 2004 11:17:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:12 UTC