Re: [whatwg/dom] Proposal: a DocumentFragment whose nodes do not get removed once inserted (#736)

FrameMuse left a comment (whatwg/dom#736)

@rniwa 

> FWIW, there will be a zoom discussion about DOM parts tomorrow. Might be interesting to you all: [w3.org/events/meetings/76765958-7255-4ef6-b23e-ca07ea6169f7](https://www.w3.org/events/meetings/76765958-7255-4ef6-b23e-ca07ea6169f7/)

I wanted to join the meeting, but it was too late for me eventually (as for Europe time, it was almost midnight), it would be awesome if another meeting is scheduled, so @WebReflection (the author of this proposal), others and I could join it on the convenient time.

Also, it was mentioned just hours before start, so there was little time for preparation.

> Could people who are supportive of this proposal also review the [DOM parts proposal](https://github.com/WICG/webcomponents/blob/gh-pages/proposals/DOM-Parts-Imperative.md) and let us know whether that proposal also address your use cases? If not, we'd really like to understand why. Since two proposals are quite similar in terms of their target use cases, we'd like to better understand how the semantic difference between the two affects usage in practice.

This is exactly what I was considering for some time already, I've come up with some good IMO examples for VanilaJS. So personally, I can state that beyond applications and avoiding Nodes patching for frameworks (rendering libraries), it definitely has its impact on how you approach certain complex cases such as: **Conditional Rendering**, **Dynamically Paged Lists**, **"tandem" grouping of elements** (e.g. `div` + `hr` group) and Encapsulation of nodes (ones can be managed in isolation while being added by another script).

_Those are just titles (and pretty abstract), but they should highlight there are definitely many cases you (or at least me) can think of._

I have considered real-world examples as well, such as flatten trees (like this in this example https://threejs.org/editor/).

---

Looking forward for the next meeting if it will appear again.

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

Message ID: <whatwg/dom/issues/736/2756921582@github.com>

Received on Thursday, 27 March 2025 06:52:49 UTC