[WICG/webcomponents] [dom-parts] Remove `.value` and `.commit()`, add `replaceChildren` (Issue #991)

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

For DOM parts to be minimally viable, the `.value` write-property and `.commit()` API are not strictly necessary to get the benefit of having a native API that wraps nodes and node ranges.

As a simplification, these two methods could be removed and frameworks could update DOM nodes directly using the properties available on DOM parts.

For `ChildNodePart` however, some method of updating all children would be useful, so some `replaceChildren()` method could be preserved that would update all the children in the node range.

For more information of how this fits into the wider picture, see [a new DOM parts proposal](https://github.com/tbondwilkinson/dom-parts) that does not include these APIs.

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

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

Received on Tuesday, 21 March 2023 19:01:10 UTC