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>

Agree. But if you check window.customElements in browser then it isn't define yet. But, document.registerElement at least is present in Firefox and Chrome. For the shake of the example let's consider use registerElement. After all by using registerElement the example will work in some way.

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

Received on Thursday, 17 March 2016 10:10:49 UTC