Merge pull request #2354 from vsemozhetbyt/patch-1

Fix typo in 8.2 (Custom elements)
This commit is contained in:
Ilya Kantor 2020-12-06 11:54:50 +03:00 committed by GitHub
commit bb5c89a701
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'}*/!*);
```