Fix typo in 8.2 (Custom elements)

This commit is contained in:
Vse Mozhe Buty 2020-12-05 23:29:14 +02:00 committed by GitHub
parent 211e20992e
commit b55c226879
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -320,7 +320,7 @@ For example, buttons are instances of `HTMLButtonElement`, let's build upon it.
class HelloButton extends HTMLButtonElement { /* custom element methods */ }
```
2. Provide an third argument to `customElements.define`, that specifies the tag:
2. Provide the third argument to `customElements.define`, that specifies the tag:
```js
customElements.define('hello-button', HelloButton, *!*{extends: 'button'}*/!*);
```