Re: [w3c/webcomponents] Add an updated proposal for DOM Parts. (#899)

@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