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

RE: Why is DOMDocument derived from DOMNode ??

From: Jaspreet Singh <Jasingh@quark.co.in>
Date: Sat, 20 Mar 2004 14:36:26 +0530
Message-ID: <7D5800A5B6E26644B2EB7A862856B0D40F735C09@SARASWATI>
To: www-dom@w3.org

Prompt replies make me so happy :)

I tried returning the documentElement from getFirstChild but it didn't
work.... What worked was returning the first child of the documentElement.
Is this right?

Thanks a lot
Jaspreet

> -----Original Message-----
> From: Philippe Le Hegaret [mailto:plh@w3.org] 
> Sent: Friday, March 19, 2004 9:56 PM
 
> getFirstChild would return the document element, or a 
> processing instruction if any, etc. Have a look at section 
> 1.1.1 regarding the possible children of a Document node, or 
> appendix C.1.1 on how to map the Infoset to a Document node.
> 
> Philippe
> 
> 
Received on Saturday, 20 March 2004 04:07:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:57 GMT