- From: Ryosuke Niwa <notifications@github.com>
- Date: Tue, 27 Oct 2020 01:42:23 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 27 October 2020 08:42:36 UTC
@rniwa commented on this pull request. > + +In this approach, `ChildNodePart` gets a new static function +which creates a list of `ChildNodePart`s which work together to set a value when the values are to be committed: + +```js +const [firstName, lastName] = ChildNodePart.create(element, null, null, [null, ’ ’, null]); +``` + +* **Pros**: Simplicity. +* **Cons**: Coming up with a nice syntax to create a sequence of `ChildNodePart` and string can be tricky. + +### Option 2. Introduce `ChildNodePartGroup` + +In this approach, we group multiple `ChildNodePart`s together by creating an explicit group: + +``` Will fix. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/pull/899#discussion_r512504758
Received on Tuesday, 27 October 2020 08:42:36 UTC