Re: Should Node.getChildNodes return Text of Attr?

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 UTC