Re: [WICG/webcomponents] [dom-parts] Creation API (Issue #1010)

For `ChildNodePart`, the first argument would be a parent node? Would it require that `previousSibling` and `nextSibling` already be parented by that node, or would it permit them regardless of whether they are currently parented / parented by another node?

This signature is a little “forgettable” to me and I wonder if `ChildNodePart` wouldn’t be better off with a dictionary argument.

```webidl
dictionary ChildNodePartInit {
  required Node? parentNode;
           Node? previousSibling = null;
           Node? nextSibling = null;
};
```

(If the parent _is_ required to be “in agreement” with the siblings at construction time, then `parentNode` would not need to be `required` unless both siblings were null, I suppose.)

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

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

Received on Wednesday, 3 May 2023 03:52:40 UTC