- From: Andres Rios <notifications@github.com>
- Date: Thu, 17 Mar 2016 04:06:01 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 17 March 2016 11:06:33 UTC
> @@ -176,7 +176,7 @@ <h4 id="custom-elements-custom-tag-example">Creating a custom tag</h4>
> <p>We then need to use this class to define the element:</p>
>
> <pre class="highlight">
> -document.defineElement("flag-icon", FlagIcon);</pre>
> +document.registerElement("flag-icon", FlagIcon);</pre>
Yes, you're right! [This interface](http://w3c.github.io/webcomponents/spec/custom/#custom-elements-api) should be used.
Anyway. Will be great if other developers will read an example that works. The introduction __section is non-normative__ after all. So, today we read an example that works and allows us to understand the meaning of custom components.
---
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/446/files/7f1f897f0536a2a48d44251de237b7cb03ab159e#r56487351
Received on Thursday, 17 March 2016 11:06:33 UTC