You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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.
In the current specification, updating a child's parent reference is implicit and does not seem to be described anywhere.
For example, in appendChild, the parent's children are explicitly modified by insert.
Somewhere before or after this, the appended node's parent reference should also be updated, but this is implicit.
When is the appropriate time for this?
The text was updated successfully, but these errors were encountered: