Re: [webcomponents] Fix typo in '2.1.1 Creating a custom tag' (#446)

> @@ -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>

This isn't right.  We should be using `window.customElements.define` instead.

---
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#r56475327

Received on Thursday, 17 March 2016 09:25:46 UTC