Re: Should Node.getChildNodes return Text of Attr?
Joseph Kesselman <[email protected]> Wed, 2 Jul 2003 15:35:38 -0400
| Newsgroups | gmane.comp.web.dom.test-suites.general |
|---|---|
| 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