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

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:06 UTC