Re: [WICG/webcomponents] [DOM Parts] Add new declarative syntax and update iterative proposal (PR #1023)

@justinfagnani commented on this pull request.



>  
 ```js
-const [firstName, lastName] = AttributePart.create(element, "title", null, [
-  null,
-  " ",
-  null,
-]);
-// Syntax to be improved. Here, a new AttributePart is created between each string.
+const part = AttributePart(document.getPartRoot(), element, "href");
+part.value = ["mailto: ", email];

`String.raw` is about how escape sequences are handled, which I don't think matters here.

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

Message ID: <WICG/webcomponents/pull/1023/review/2799427692@github.com>

Received on Monday, 28 April 2025 14:05:00 UTC