[Home] [By Thread] [By Date] [Recent Entries]

  • From: Philippe Le Hegaret <plh@w...>
  • To: "David E. Cleary" <davec@p...>
  • Date: Thu, 22 Mar 2001 13:34:17 -0500

"David E. Cleary" wrote:
> 
> Should it be possible to append a node to itself?
> 
> I.E. a.appendChild(a);
> 
> The DOM specifies that it is an error to try and append an ancestor of a
> node as a child, but says nothing about whether the nodes are one in the
> same. Is this a bug in the DOM spec, or should this work?

It is a bug in the DOM spec. See the errata list [1], core-6, core-7 and
core-8.


Philippe
[1] http://www.w3.org/2000/11/DOM-Level-2-errata

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member