- From: Masataka Yakura <notifications@github.com>
- Date: Mon, 26 Oct 2020 21:59:11 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 27 October 2020 04:59:24 UTC
@myakura commented on this pull request.
> +```html
+<section><h1 id="name">{name}</h1>Email: <a id="link" href="mailto:{email}">{email}</a></section>
+```
+
+And we've parsed the following HTML so far (future extensions will make this parsing possible without extra JavaScript code):
+```html
+<section><h1 id="name"></h1>Email: <a id="link" href=""></a></section>
+```
+
+Then we can create `ChildNodePart` for [`h1` element](https://html.spec.whatwg.org/multipage/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements)
+and [`a` element](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element)
+and `AttributePart` for [`a` element](https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-a-element) as follows:
+```js
+namePart = new ChildNodePart(name)
+emailPart = new ChildNodePart(link)
+emailAttributePart = new AttributePart(link, ’href’)
it looks single quotes are unintentionally converted to smart quotes throughout the draft.
--
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-517348947
Received on Tuesday, 27 October 2020 04:59:24 UTC