W3C home > Mailing lists > Public > www-dom-ts@w3.org > July 2003

Re: Should Node.getChildNodes return Text of Attr?

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 2 Jul 2003 15:35:38 -0400
To: www-dom-ts@w3.org
Message-ID: <OFB81035B3.81A0AA0E-ON85256D57.006B72DD-85256D57.006BA23C@us.ibm.com>





Calling getChildNodes on a DOM Attr node does return the children of the
Attr, which are the text and EntityReference nodes that make up the Attr's
content.

Calling getChildNodes on an element does *NOT* return the Attr nodes or
their descendents. Attributes are not children in the DOM, and do not have
parents (though they may have an Owner Element).

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
Received on Wednesday, 2 July 2003 15:50:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:49 GMT