Re: [whatwg/dom] Explicitly update the child's parent (Issue #1221)

"Parent reference" isn't a concept in the spec. The parent-child relationship is _defined_ in https://dom.spec.whatwg.org/#trees ; if X is a child of Y, then Y _by definition_ is a parent of X. When your implementation is using a two-way pair of references as an implementation detail of tracking this relationship, it probably should set them both at the same time.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1221#issuecomment-1694673636
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1221/1694673636@github.com>

Received on Sunday, 27 August 2023 13:48:58 UTC