[WICG/webcomponents] [dom-parts] Browser updating parts list from `getParts()` (Issue #993)

@justinfagnani @mfreed7 @sorvell @kevinpschaaf and a few folks from Angular have been thinking about the DOM parts API fresh.

Taken with #990 and #992, the browser needs to return a list of parts that is accurate with what is represented in teh DOM. The browser also needs to keep that list updated when nodes are added or removed from the DOM or when new parts are constructed. Ideally this list should be in DOM-order as well, to make walking the parts as easy as possible.

How the browser should keep this list live may be easiest with a cached list of parts that is invalidated. For a full discussion of how the browser might do this book-keeping, see [this discussion on a new proposal based on DOM parts](https://github.com/tbondwilkinson/dom-parts/blob/main/browser_bookkeeping.md).

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/993
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/993@github.com>

Received on Tuesday, 21 March 2023 20:01:54 UTC