Comments (2)
"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.
from dom.
An object that participates in a tree has a parent, which is either null or an object, and has children,
I thought this expression meant that each node has an internal slot of parent and children.
But, certainly the word "associated" was not used.
The question has been answered. Thanks!
from dom.
Related Issues (20)
- Delegate to Iterator helper methods on NodeList HOT 2
- Proposal for built-in method to synchronize elements with virtual DOM representation
- another version of `Element.prototype.contains` that considers slotted elements as children HOT 2
- Variable strength aborting HOT 1
- Proposal: DOM APIs in web workers? HOT 42
- clone with clone children flag set should append clone before cloning children HOT 2
- Provide a "deep clone" shorthand HOT 1
- Support for HTML/XML stream parsing/rewriting. HOT 4
- matchMedia-like API for element matches
- MutationOvserver and DOMNodeInsertedIntoDocument HOT 1
- Add guidance about using DOMTokenList
- Elements with Fallback, Proxy, Replacement, Substitute, or Surrogate Elements
- Selecting Events with Style HOT 6
- Element.attachShadow should set the declarative flag to false of an existing declarative shadow dom. HOT 4
- Should attachShadow throw or override when an existing declarative shadow root doesn't match? HOT 18
- Corresponding attribute for clonable of ShadowRootInit? HOT 3
- How should `clonable` work in `cloneNode(false)`? HOT 11
- Support for appending a cloned template adjacent to an existing element HOT 1
- Make some ShadowRoot attributes mutable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dom.