- From: Tom Wilkinson <notifications@github.com>
- Date: Fri, 26 May 2023 10:12:34 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 26 May 2023 17:12:40 UTC
What do you think about a fourth option where we have an `AttributePart` with a `.value` that is not a string, and instead is an Object that can be updated but is then always serialized to the full value for the `AttributePart`.
This would let the `AttributePart` still be 1:1 with the `Attr` node, but allow for splitting up attributes.
```
const firstName = new StringPart();
const lastName = new StringPart();
const attributeTemplate = attribute`${lastName} ${firstName}`;
const part = new AttributePart(element, 'title');
part.value = attributeTemplate;
```
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1011#issuecomment-1564688099
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/1011/1564688099@github.com>
Received on Friday, 26 May 2023 17:12:40 UTC