- From: Michael Stramel <notifications@github.com>
- Date: Mon, 26 Oct 2020 09:43:41 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 26 October 2020 16:43:54 UTC
@stramel commented on this pull request. > + } + } + for (const childNode of node.childNodes) + createParts(childNode, parts); + return parts; +} +``` + +After running this code, `instance` would contain a DOM tree equivalent of: +```html +<section><h1 id="name"></h1>Email: <a id="link" href=""></a></section> +``` + +Then we can assign values to various parts we’ve just created as follows: +```js +updateParts(parts, {name: "Ryosuke Niwa", email: "rniwa@webkit.org", "mailAddress": "mailto:rniwa@webkit.org"}) ```suggestion updateParts(parts, {name: "Ryosuke Niwa", email: "rniwa@webkit.org", "emailAddress": "mailto:rniwa@webkit.org"}) ``` -- 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#pullrequestreview-516971164
Received on Monday, 26 October 2020 16:43:54 UTC